1 {{- if and .Values.pushgateway.enabled .Values.rbac.create -}}
2 apiVersion: rbac.authorization.k8s.io/v1beta1
3 kind: ClusterRoleBinding
6 {{- include "prometheus.pushgateway.labels" . | nindent 4 }}
7 name: {{ template "prometheus.pushgateway.fullname" . }}
10 name: {{ template "prometheus.serviceAccountName.pushgateway" . }}
11 {{ include "prometheus.namespace" . | indent 4 }}
13 apiGroup: rbac.authorization.k8s.io
15 name: {{ template "prometheus.pushgateway.fullname" . }}