github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/prometheus-community/prometheus-adapter/templates/role-binding-auth-reader.yaml (about) 1 {{- if .Values.rbac.create -}} 2 apiVersion: rbac.authorization.k8s.io/v1 3 kind: RoleBinding 4 metadata: 5 {{- if .Values.customAnnotations }} 6 annotations: 7 {{- toYaml .Values.customAnnotations | nindent 4 }} 8 {{- end }} 9 labels: 10 {{- include "k8s-prometheus-adapter.labels" . | indent 4 }} 11 name: {{ template "k8s-prometheus-adapter.name" . }}-auth-reader 12 namespace: kube-system 13 roleRef: 14 apiGroup: rbac.authorization.k8s.io 15 kind: Role 16 name: extension-apiserver-authentication-reader 17 subjects: 18 - kind: ServiceAccount 19 name: {{ template "k8s-prometheus-adapter.serviceAccountName" . }} 20 namespace: {{ include "k8s-prometheus-adapter.namespace" . | quote }} 21 {{- end -}}