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