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 / clusterrolebinding.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: ClusterRoleBinding
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 roleRef:
14   apiGroup: rbac.authorization.k8s.io
15   kind: ClusterRole
16   name: {{ template "prometheus-operator.fullname" . }}-admission
17 subjects:
18   - kind: ServiceAccount
19     name: {{ template "prometheus-operator.fullname" . }}-admission
20     namespace: {{ template "prometheus-operator.namespace" . }}
21 {{- end }}