github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/redis/templates/redis-rolebinding.yaml (about)

     1  {{- if .Values.rbac.create -}}
     2  apiVersion: rbac.authorization.k8s.io/v1beta1
     3  kind: RoleBinding
     4  metadata:
     5    name: {{ template "redis.fullname" . }}
     6    labels:
     7      app: {{ template "redis.name" . }}
     8      chart: {{ template "redis.chart" . }}
     9      release: "{{ .Release.Name }}"
    10      heritage: "{{ .Release.Service }}"
    11  roleRef:
    12    apiGroup: rbac.authorization.k8s.io
    13    kind: Role
    14    name: {{ template "redis.fullname" . }}
    15  subjects:
    16  - kind: ServiceAccount
    17    name: {{ template "redis.serviceAccountName" . }}
    18  {{- end -}}