[UI] Parameterize TEAMS list (#1375)
* Parameterize TEAMS list * Update charts/postgres-operator-ui/values.yaml * Update charts/postgres-operator-ui/values.yaml Co-authored-by: Dat Tang <datthanh.tag-ext@bankelf.eu> Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
This commit is contained in:
parent
78bfba85d2
commit
f54435ea9c
|
|
@ -18,7 +18,7 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
team: "acid" # Parameterize?
|
team: "{{ join "," .Values.envs.teams }}"
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
serviceAccountName: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
||||||
{{- if .Values.imagePullSecrets }}
|
{{- if .Values.imagePullSecrets }}
|
||||||
|
|
@ -54,7 +54,10 @@ spec:
|
||||||
- name: "TEAMS"
|
- name: "TEAMS"
|
||||||
value: |-
|
value: |-
|
||||||
[
|
[
|
||||||
"acid"
|
{{- range(initial .Values.envs.teams) }}
|
||||||
|
{{ . | quote }},
|
||||||
|
{{- end }}
|
||||||
|
{{ last .Values.envs.teams | quote }}
|
||||||
]
|
]
|
||||||
- name: "OPERATOR_UI_CONFIG"
|
- name: "OPERATOR_UI_CONFIG"
|
||||||
value: |-
|
value: |-
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ image:
|
||||||
# Secrets must be manually created in the namespace.
|
# Secrets must be manually created in the namespace.
|
||||||
# ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
|
# ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
|
||||||
# imagePullSecrets:
|
# imagePullSecrets:
|
||||||
# - name:
|
# - name:
|
||||||
|
|
||||||
rbac:
|
rbac:
|
||||||
# Specifies whether RBAC resources should be created
|
# Specifies whether RBAC resources should be created
|
||||||
|
|
@ -45,6 +45,8 @@ envs:
|
||||||
operatorClusterNameLabel: "cluster-name"
|
operatorClusterNameLabel: "cluster-name"
|
||||||
resourcesVisible: "False"
|
resourcesVisible: "False"
|
||||||
targetNamespace: "default"
|
targetNamespace: "default"
|
||||||
|
teams:
|
||||||
|
- "acid"
|
||||||
|
|
||||||
# configure UI service
|
# configure UI service
|
||||||
service:
|
service:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue