aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/operator/charts/etcd-operator/templates/operator-cluster-role.yaml
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2019-03-11 11:42:11 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2019-03-11 11:42:11 -0700
commit481ddd352817a45f29bbfaad898c7815c1f6e9a0 (patch)
tree62e5ad7cdce58a08a25ccc255eaf6d10d7eaaef0 /vnfs/DAaaS/operator/charts/etcd-operator/templates/operator-cluster-role.yaml
parent6d7c9539bb348af48f6c3d109c46f6f22d927be0 (diff)
Operator pacakge for Distributed Analytics
Created the operator helm charts in separate package which consists of multiple kubernetes operators. Change-Id: I38e3fafae65b655de1accec05082d0afaed1d688 Issue-ID: ONAPARC-366 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'vnfs/DAaaS/operator/charts/etcd-operator/templates/operator-cluster-role.yaml')
-rw-r--r--vnfs/DAaaS/operator/charts/etcd-operator/templates/operator-cluster-role.yaml49
1 files changed, 49 insertions, 0 deletions
diff --git a/vnfs/DAaaS/operator/charts/etcd-operator/templates/operator-cluster-role.yaml b/vnfs/DAaaS/operator/charts/etcd-operator/templates/operator-cluster-role.yaml
new file mode 100644
index 00000000..62085978
--- /dev/null
+++ b/vnfs/DAaaS/operator/charts/etcd-operator/templates/operator-cluster-role.yaml
@@ -0,0 +1,49 @@
+{{- if .Values.rbac.create }}
+---
+apiVersion: rbac.authorization.k8s.io/{{ .Values.rbac.apiVersion }}
+kind: ClusterRole
+metadata:
+ name: {{ template "etcd-operator.fullname" . }}
+ labels:
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ app: {{ template "etcd-operator.name" . }}
+ heritage: {{ .Release.Service }}
+ release: {{ .Release.Name }}
+rules:
+- apiGroups:
+ - etcd.database.coreos.com
+ resources:
+ - etcdclusters
+ - etcdbackups
+ - etcdrestores
+ verbs:
+ - "*"
+- apiGroups:
+ - apiextensions.k8s.io
+ resources:
+ - customresourcedefinitions
+ verbs:
+ - "*"
+- apiGroups:
+ - ""
+ resources:
+ - pods
+ - services
+ - endpoints
+ - persistentvolumeclaims
+ - events
+ verbs:
+ - "*"
+- apiGroups:
+ - apps
+ resources:
+ - deployments
+ verbs:
+ - "*"
+- apiGroups:
+ - ""
+ resources:
+ - secrets
+ verbs:
+ - get
+{{- end }}