Integrate collectd, prometheus and grafana.
[multicloud/k8s.git] / kud / tests / vnfs / comp-app / collection / app2 / helm / prometheus-operator / templates / prometheus-operator / admission-webhooks / job-patch / role.yaml
1 {{- if and .Values.prometheusOperator.admissionWebhooks.enabled .Values.prometheusOperator.admissionWebhooks.patch.enabled .Values.global.rbac.create  }}
2 apiVersion: rbac.authorization.k8s.io/v1
3 kind: Role
4 metadata:
5   name:  {{ template "prometheus-operator.fullname" . }}-admission
6   namespace: {{ template "prometheus-operator.namespace" . }}
7   annotations:
8     "helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
9     "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
10   labels:
11     app: {{ template "prometheus-operator.name" $ }}-admission
12 {{- include "prometheus-operator.labels" $ | indent 4 }}
13 rules:
14   - apiGroups:
15       - ""
16     resources:
17       - secrets
18     verbs:
19       - get
20       - create
21 {{- end }}