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

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