1 {{- if and .Values.pushgateway.enabled .Values.rbac.create -}}
2 apiVersion: rbac.authorization.k8s.io/v1beta1
6 {{- include "prometheus.pushgateway.labels" . | nindent 4 }}
7 name: {{ template "prometheus.pushgateway.fullname" . }}
9 {{- if .Values.podSecurityPolicy.enabled }}
17 - {{ template "prometheus.pushgateway.fullname" . }}