aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2019-08-10 17:30:33 -0700
committerDileep Ranganathan <dileep.ranganathan@intel.com>2019-08-12 10:51:22 -0700
commit5404b24913f114fe6328d1ec20c7bb79d91a7a92 (patch)
tree7e252d5896d204a7722f84d24b1f8e4045b614ca /vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml
parent6bae7d6e0110dcb57cd48e813d1dbaf4fe1c9293 (diff)
Helm charts for Collectd Operator
Helm charts for Collectd Operator Issue-ID: ONAPARC-461 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com> Change-Id: Icd1fc169f9e005030a0d2b48cf9dd76434bf6ba3 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml')
-rw-r--r--vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml b/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml
new file mode 100644
index 00000000..73de6aad
--- /dev/null
+++ b/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role.yaml
@@ -0,0 +1,57 @@
+{{- if .Values.enabled }}
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ creationTimestamp: null
+ name: collectd-operator
+ labels:
+ app: {{ template "collectd-operator.name" . }}
+ chart: {{ template "collectd-operator.chart" . }}
+ component: clusterrole
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+rules:
+- apiGroups:
+ - ""
+ resources:
+ - pods
+ - services
+ - endpoints
+ - persistentvolumeclaims
+ - events
+ - configmaps
+ - secrets
+ verbs:
+ - '*'
+- apiGroups:
+ - apps
+ resources:
+ - deployments
+ - daemonsets
+ - replicasets
+ - statefulsets
+ verbs:
+ - '*'
+- apiGroups:
+ - monitoring.coreos.com
+ resources:
+ - servicemonitors
+ verbs:
+ - get
+ - create
+- apiGroups:
+ - apps
+ resourceNames:
+ - collectd-operator
+ resources:
+ - deployments/finalizers
+ verbs:
+ - update
+- apiGroups:
+ - onap.org
+ resources:
+ - '*'
+ - collectdglobals
+ verbs:
+ - '*'
+{{- end }} \ No newline at end of file