diff --git a/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml b/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml index 26b770a..de1cfdd 100644 --- a/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml +++ b/setup/helm/operator/templates/operator-service-account-rbac-openshift.yaml @@ -233,6 +233,12 @@ subjects: - kind: ServiceAccount name: postgres-operator namespace: {{ .Values.operatorSettings.operator_namespace }} +# loop through additional target namespaces +{{- range .Values.operatorSettings.subjects }} +- kind: ServiceAccount +  name: postgres-operator +  namespace: {{ .namespace }} +{{- end }} --- apiVersion: rbac.authorization.k8s.io/v1 @@ -280,4 +286,4 @@ rules: # resourceNames: # - privileged # verbs: -# - use \ No newline at end of file +# - use