mirror of
https://github.com/bitnami/charts.git
synced 2026-04-02 23:37:20 +08:00
* [bitnami/postgresql] Chart standardization Signed-off-by: juan131 <juanariza@vmware.com> * [bitnami/postgresql] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
23 lines
857 B
YAML
23 lines
857 B
YAML
{{- if .Values.rbac.create }}
|
|
kind: RoleBinding
|
|
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
|
|
metadata:
|
|
name: {{ include "common.names.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
roleRef:
|
|
kind: Role
|
|
name: {{ include "common.names.fullname" . }}
|
|
apiGroup: rbac.authorization.k8s.io
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "postgresql.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|