20 lines
708 B
YAML
20 lines
708 B
YAML
|
{{ if .Values.rbac.create }}
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
||
|
labels:
|
||
|
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
||
|
helm.sh/chart: {{ template "postgres-operator-ui.chart" . }}
|
||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
||
|
namespace: {{ .Release.Namespace }}
|
||
|
{{ end }}
|