summaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role_binding.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role_binding.yaml')
-rw-r--r--vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role_binding.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role_binding.yaml b/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role_binding.yaml
new file mode 100644
index 00000000..024ba2a1
--- /dev/null
+++ b/vnfs/DAaaS/deploy/operator/charts/collectd-operator/templates/role_binding.yaml
@@ -0,0 +1,20 @@
+{{- if .Values.enabled }}
+kind: ClusterRoleBinding
+apiVersion: rbac.authorization.k8s.io/v1
+metadata:
+ name: collectd-operator
+ labels:
+ app: {{ template "collectd-operator.name" . }}
+ chart: {{ template "collectd-operator.chart" . }}
+ component: clusterrolebinding
+ release: {{ .Release.Name }}
+ heritage: {{ .Release.Service }}
+subjects:
+- kind: ServiceAccount
+ name: collectd-operator
+ namespace: {{ .Release.Namespace }}
+roleRef:
+ kind: ClusterRole
+ name: collectd-operator
+ apiGroup: rbac.authorization.k8s.io
+{{- end }} \ No newline at end of file