Skip to content

Commit f54435e

Browse files
caiconkhiconDat TangFxKu
authored
[UI] Parameterize TEAMS list (zalando#1375)
* Parameterize TEAMS list * Update charts/postgres-operator-ui/values.yaml * Update charts/postgres-operator-ui/values.yaml Co-authored-by: Dat Tang <[email protected]> Co-authored-by: Felix Kunde <[email protected]>
1 parent 78bfba8 commit f54435e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

charts/postgres-operator-ui/templates/deployment.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spec:
1818
labels:
1919
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
2020
app.kubernetes.io/instance: {{ .Release.Name }}
21-
team: "acid" # Parameterize?
21+
team: "{{ join "," .Values.envs.teams }}"
2222
spec:
2323
serviceAccountName: {{ include "postgres-operator-ui.serviceAccountName" . }}
2424
{{- if .Values.imagePullSecrets }}
@@ -54,7 +54,10 @@ spec:
5454
- name: "TEAMS"
5555
value: |-
5656
[
57-
"acid"
57+
{{- range(initial .Values.envs.teams) }}
58+
{{ . | quote }},
59+
{{- end }}
60+
{{ last .Values.envs.teams | quote }}
5861
]
5962
- name: "OPERATOR_UI_CONFIG"
6063
value: |-

charts/postgres-operator-ui/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ image:
1515
# Secrets must be manually created in the namespace.
1616
# ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
1717
# imagePullSecrets:
18-
# - name:
18+
# - name:
1919

2020
rbac:
2121
# Specifies whether RBAC resources should be created
@@ -45,6 +45,8 @@ envs:
4545
operatorClusterNameLabel: "cluster-name"
4646
resourcesVisible: "False"
4747
targetNamespace: "default"
48+
teams:
49+
- "acid"
4850

4951
# configure UI service
5052
service:

0 commit comments

Comments
 (0)