Add support for prometheus
[ric-plt/ric-dep.git] / helm / infrastructure / subcharts / prometheus / templates / pushgateway-clusterrolebinding.yaml
1 {{- if and .Values.pushgateway.enabled .Values.rbac.create -}}
2 apiVersion: rbac.authorization.k8s.io/v1beta1
3 kind: ClusterRoleBinding
4 metadata:
5   labels:
6     {{- include "prometheus.pushgateway.labels" . | nindent 4 }}
7   name: {{ template "prometheus.pushgateway.fullname" . }}
8 subjects:
9   - kind: ServiceAccount
10     name: {{ template "prometheus.serviceAccountName.pushgateway" . }}
11 {{ include "prometheus.namespace" . | indent 4 }}
12 roleRef:
13   apiGroup: rbac.authorization.k8s.io
14   kind: ClusterRole
15   name: {{ template "prometheus.pushgateway.fullname" . }}
16 {{- end }}