[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: | ||||
|         app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }} | ||||
|         app.kubernetes.io/instance: {{ .Release.Name }} | ||||
|         team: "acid" # Parameterize? | ||||
|         team: "{{ join "," .Values.envs.teams }}" | ||||
|     spec: | ||||
|       serviceAccountName: {{ include "postgres-operator-ui.serviceAccountName" . }} | ||||
|       {{- if .Values.imagePullSecrets }} | ||||
|  | @ -54,7 +54,10 @@ spec: | |||
|             - name: "TEAMS" | ||||
|               value: |- | ||||
|                 [ | ||||
|                   "acid" | ||||
|                   {{- range(initial .Values.envs.teams) }} | ||||
|                   {{ . | quote }}, | ||||
|                   {{- end }} | ||||
|                   {{ last .Values.envs.teams | quote }} | ||||
|                 ] | ||||
|             - name: "OPERATOR_UI_CONFIG" | ||||
|               value: |- | ||||
|  |  | |||
|  | @ -45,6 +45,8 @@ envs: | |||
|   operatorClusterNameLabel: "cluster-name" | ||||
|   resourcesVisible: "False" | ||||
|   targetNamespace: "default" | ||||
|   teams: | ||||
|     - "acid" | ||||
| 
 | ||||
| # configure UI service | ||||
| service: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue