github.com/Azure/aad-pod-identity@v1.8.17/charts/aad-pod-identity/templates/mic-clusterrolebinding.yaml (about)

     1  {{- if and .Values.rbac.enabled (eq .Values.operationMode "standard") }}
     2  apiVersion: rbac.authorization.k8s.io/v1
     3  kind: ClusterRoleBinding
     4  metadata:
     5    name: {{ template "aad-pod-identity.mic.fullname" . }}
     6    labels:
     7      {{- include "aad-pod-identity.labels" . | nindent 4 }}
     8      app.kubernetes.io/component: mic
     9  subjects:
    10  - kind: ServiceAccount
    11    name: {{ template "aad-pod-identity.mic.fullname" . }}
    12    namespace: {{ .Release.Namespace }}
    13  roleRef:
    14    kind: ClusterRole
    15    name: {{ template "aad-pod-identity.mic.fullname" . }}
    16    apiGroup: rbac.authorization.k8s.io
    17  {{- end }}