rolebinding.yaml 846 B

123456789101112131415161718192021222324
  1. {{- /*
  2. Copyright VMware, Inc.
  3. SPDX-License-Identifier: APACHE-2.0
  4. */}}
  5. {{- if .Values.rbac.create }}
  6. kind: RoleBinding
  7. apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
  8. metadata:
  9. name: {{ include "common.names.fullname" . }}
  10. namespace: {{ .Release.Namespace | quote }}
  11. labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
  12. {{- if .Values.commonAnnotations }}
  13. annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
  14. {{- end }}
  15. roleRef:
  16. kind: Role
  17. name: {{ include "common.names.fullname" . }}
  18. apiGroup: rbac.authorization.k8s.io
  19. subjects:
  20. - kind: ServiceAccount
  21. name: {{ include "postgresql.v1.serviceAccountName" . }}
  22. namespace: {{ .Release.Namespace | quote }}
  23. {{- end }}