Files
charts/bitnami/postgresql-ha/templates/rolebinding.yaml
Abhimanyu Saharan 893e008a7f [bitnami/postgresql-ha] Adds PSP and RBAC (#7837)
* fix: missing api port for network policy

* fix: liveliness and readiness probes port

* chore: bump up chart version to 8.1.10

* fix: typo

* fix: typo

* feat: added psp and rbac

* fix: added chown capability for init chmod containers

* fix: indentations
2021-10-20 13:38:56 +02:00

21 lines
735 B
YAML

{{- if .Values.rbac.create }}
kind: RoleBinding
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
metadata:
name: {{ template "common.names.fullname" . }}
labels:
{{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: Role
name: {{ template "common.names.fullname" . }}
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ default (include "common.names.fullname" . ) .Values.serviceAccount.name }}
namespace: {{ .Release.Namespace }}
{{- end }}