aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/visualization/charts/grafana/templates/rolebinding.yaml
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2019-05-07 14:55:00 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-07 14:55:00 +0000
commitefe1bac85828cff233167bdaaae7edd26b03e7a4 (patch)
tree5c9cca5b20ab5fe3d82ae2f25b6a56c4abae2ce1 /vnfs/DAaaS/visualization/charts/grafana/templates/rolebinding.yaml
parent2e3e9ce49761fa60e9605a5c4ac74c1509596029 (diff)
parent5b1cd4ca88dd979c4b538c41db53031706e8d31b (diff)
Merge "Visualization Helm charts package"
Diffstat (limited to 'vnfs/DAaaS/visualization/charts/grafana/templates/rolebinding.yaml')
-rwxr-xr-xvnfs/DAaaS/visualization/charts/grafana/templates/rolebinding.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/vnfs/DAaaS/visualization/charts/grafana/templates/rolebinding.yaml b/vnfs/DAaaS/visualization/charts/grafana/templates/rolebinding.yaml
new file mode 100755
index 00000000..8b6671b8
--- /dev/null
+++ b/vnfs/DAaaS/visualization/charts/grafana/templates/rolebinding.yaml
@@ -0,0 +1,29 @@
+{{- if .Values.rbac.create -}}
+apiVersion: rbac.authorization.k8s.io/v1beta1
+kind: RoleBinding
+metadata:
+ name: {{ template "grafana.fullname" . }}
+ labels:
+ app: {{ template "grafana.name" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version }}
+ heritage: {{ .Release.Service }}
+ release: {{ .Release.Name }}
+{{- with .Values.annotations }}
+ annotations:
+{{ toYaml . | indent 4 }}
+{{- end }}
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: {{ template "grafana.fullname" . }}
+subjects:
+- kind: ServiceAccount
+ name: {{ template "grafana.serviceAccountName" . }}
+ namespace: {{ .Release.Namespace }}
+{{- if .Values.rbac.namespaced }}
+roleRef:
+ kind: Role
+ name: {{ template "grafana.fullname" . }}
+ apiGroup: rbac.authorization.k8s.io
+{{- end }}
+{{- end -}}