github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/prometheus/psp-clusterrolebinding.yaml (about) 1 {{- if and .Values.prometheus.enabled .Values.global.rbac.create .Values.global.rbac.pspEnabled }} 2 {{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }} 3 apiVersion: rbac.authorization.k8s.io/v1 4 kind: ClusterRoleBinding 5 metadata: 6 name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus-psp 7 labels: 8 app: {{ template "kube-prometheus-stack.name" . }}-prometheus 9 {{ include "kube-prometheus-stack.labels" . | indent 4 }} 10 roleRef: 11 apiGroup: rbac.authorization.k8s.io 12 kind: ClusterRole 13 name: {{ template "kube-prometheus-stack.fullname" . }}-prometheus-psp 14 subjects: 15 - kind: ServiceAccount 16 name: {{ template "kube-prometheus-stack.prometheus.serviceAccountName" . }} 17 namespace: {{ template "kube-prometheus-stack.namespace" . }} 18 {{- end }} 19 {{- end }}