rolebinding.yaml 823 B

123456789101112131415161718192021
  1. {{- if .Values.rbac.create }}
  2. apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
  3. kind: RoleBinding
  4. metadata:
  5. name: {{ template "common.names.fullname" . }}
  6. namespace: {{ .Release.Namespace | quote }}
  7. labels: {{- include "common.labels.standard" . | nindent 4 }}
  8. {{- if .Values.commonLabels }}
  9. {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
  10. {{- end }}
  11. {{- if .Values.commonAnnotations }}
  12. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  13. {{- end }}
  14. roleRef:
  15. apiGroup: rbac.authorization.k8s.io
  16. kind: Role
  17. name: {{ template "common.names.fullname" . }}
  18. subjects:
  19. - kind: ServiceAccount
  20. name: {{ template "redis.serviceAccountName" . }}
  21. {{- end }}