github.com/microsoft/fabrikate@v1.0.0-alpha.1.0.20210115014322-dc09194d0885/testdata/local-charts/prometheus/templates/pushgateway/clusterrole.yaml (about) 1 {{- if and .Values.pushgateway.enabled .Values.rbac.create -}} 2 apiVersion: {{ template "rbac.apiVersion" . }} 3 kind: ClusterRole 4 metadata: 5 labels: 6 {{- include "prometheus.pushgateway.labels" . | nindent 4 }} 7 name: {{ template "prometheus.pushgateway.fullname" . }} 8 rules: 9 {{- if .Values.podSecurityPolicy.enabled }} 10 - apiGroups: 11 - extensions 12 resources: 13 - podsecuritypolicies 14 verbs: 15 - use 16 resourceNames: 17 - {{ template "prometheus.pushgateway.fullname" . }} 18 {{- else }} 19 [] 20 {{- end }} 21 {{- end }}