github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/testdata/local-charts/prometheus/templates/pushgateway/clusterrolebinding.yaml (about) 1 {{- if and .Values.pushgateway.enabled .Values.rbac.create -}} 2 apiVersion: {{ template "rbac.apiVersion" . }} 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 }}