github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/kube-prometheus-stack/templates/prometheus-operator/psp-clusterrolebinding.yaml (about)

     1  {{- if and .Values.prometheusOperator.enabled .Values.global.rbac.create .Values.global.rbac.pspEnabled }}
     2  {{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }}
     3  kind: ClusterRoleBinding
     4  apiVersion: rbac.authorization.k8s.io/v1
     5  metadata:
     6    name: {{ template "kube-prometheus-stack.fullname" . }}-operator-psp
     7    labels:
     8      app: {{ template "kube-prometheus-stack.name" . }}-operator
     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" . }}-operator-psp
    14  subjects:
    15    - kind: ServiceAccount
    16      name: {{ template "kube-prometheus-stack.operator.serviceAccountName" . }}
    17      namespace: {{ template "kube-prometheus-stack.namespace" . }}
    18  {{- end }}
    19  {{- end }}