github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-node-exporter/templates/clusterrolebinding.yaml (about) 1 {{- if and (eq .Values.rbac.create true) (eq .Values.kubeRBACProxy.enabled true) -}} 2 apiVersion: rbac.authorization.k8s.io/v1 3 kind: ClusterRoleBinding 4 metadata: 5 labels: 6 {{- include "prometheus-node-exporter.labels" . | nindent 4 }} 7 name: {{ template "prometheus-node-exporter.fullname" . }} 8 roleRef: 9 apiGroup: rbac.authorization.k8s.io 10 kind: ClusterRole 11 {{- if .Values.rbac.useExistingRole }} 12 name: {{ .Values.rbac.useExistingRole }} 13 {{- else }} 14 name: {{ template "prometheus-node-exporter.fullname" . }} 15 {{- end }} 16 subjects: 17 - kind: ServiceAccount 18 name: {{ template "prometheus-node-exporter.serviceAccountName" . }} 19 namespace: {{ template "prometheus-node-exporter.namespace" . }} 20 {{- end -}}