diff options
author | Srivahni <srivahni.chivukula@intel.com> | 2019-04-02 16:10:45 -0700 |
---|---|---|
committer | Srivahni Chivukula <srivahni.chivukula@intel.com> | 2019-04-29 18:03:32 +0000 |
commit | 5b1cd4ca88dd979c4b538c41db53031706e8d31b (patch) | |
tree | 2f582b1f08a018b8f76af0010c549e31cb049918 /vnfs/DAaaS/visualization/charts/grafana/templates/clusterrole.yaml | |
parent | ed44393c10548b712a4c9c55f5d51c9e01554c2b (diff) |
Visualization Helm charts package
Helm charts for Grafana
Added Prometheus and M3DB as datasouces
Change-Id: I60bebd0c8ef26f1dc3d91659c55c43f603dd0928
Issue-ID: ONAPARC-393
Signed-off-by: Srivahni <srivahni.chivukula@intel.com>
Diffstat (limited to 'vnfs/DAaaS/visualization/charts/grafana/templates/clusterrole.yaml')
-rwxr-xr-x | vnfs/DAaaS/visualization/charts/grafana/templates/clusterrole.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vnfs/DAaaS/visualization/charts/grafana/templates/clusterrole.yaml b/vnfs/DAaaS/visualization/charts/grafana/templates/clusterrole.yaml new file mode 100755 index 00000000..ccfc7237 --- /dev/null +++ b/vnfs/DAaaS/visualization/charts/grafana/templates/clusterrole.yaml @@ -0,0 +1,23 @@ +{{- if and .Values.rbac.create (not .Values.rbac.namespaced) }} +kind: ClusterRole +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + labels: + app: {{ template "grafana.name" . }} + chart: {{ template "grafana.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +{{- with .Values.annotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} + name: {{ template "grafana.fullname" . }}-clusterrole +{{- if or .Values.sidecar.dashboards.enabled .Values.sidecar.datasources.enabled }} +rules: +- apiGroups: [""] # "" indicates the core API group + resources: ["configmaps"] + verbs: ["get", "watch", "list"] +{{- else }} +rules: [] +{{- end}} +{{- end}} |