use tpl in value objects containing arrays (#2115)
using tpl in value objects containing arrays allows us to override objects in arrays. This is not possible via helm --set due to limitations in helm
This commit is contained in:
		
							parent
							
								
									0e3cbcd180
								
							
						
					
					
						commit
						4a386691b7
					
				|  | @ -12,7 +12,7 @@ metadata: | ||||||
| configuration: | configuration: | ||||||
| {{ toYaml .Values.configGeneral | indent 2 }} | {{ toYaml .Values.configGeneral | indent 2 }} | ||||||
|   users: |   users: | ||||||
| {{ toYaml .Values.configUsers | indent 4 }} | {{ tpl (toYaml .Values.configUsers) . | indent 4 }} | ||||||
|   major_version_upgrade: |   major_version_upgrade: | ||||||
| {{ toYaml .Values.configMajorVersionUpgrade | indent 4 }} | {{ toYaml .Values.configMajorVersionUpgrade | indent 4 }} | ||||||
|   kubernetes: |   kubernetes: | ||||||
|  | @ -21,7 +21,7 @@ configuration: | ||||||
|     {{- end }} |     {{- end }} | ||||||
|     pod_service_account_name: {{ include "postgres-pod.serviceAccountName" . }} |     pod_service_account_name: {{ include "postgres-pod.serviceAccountName" . }} | ||||||
|     oauth_token_secret_name: {{ template "postgres-operator.fullname" . }} |     oauth_token_secret_name: {{ template "postgres-operator.fullname" . }} | ||||||
| {{ toYaml .Values.configKubernetes | indent 4 }} | {{ tpl (toYaml .Values.configKubernetes) . | indent 4 }} | ||||||
|   postgres_pod_resources: |   postgres_pod_resources: | ||||||
| {{ toYaml .Values.configPostgresPodResources | indent 4 }} | {{ toYaml .Values.configPostgresPodResources | indent 4 }} | ||||||
|   timeouts: |   timeouts: | ||||||
|  | @ -35,7 +35,7 @@ configuration: | ||||||
|   debug: |   debug: | ||||||
| {{ toYaml .Values.configDebug | indent 4 }} | {{ toYaml .Values.configDebug | indent 4 }} | ||||||
|   teams_api: |   teams_api: | ||||||
| {{ toYaml .Values.configTeamsApi | indent 4 }} | {{ tpl (toYaml .Values.configTeamsApi) . | indent 4 }} | ||||||
|   logging_rest_api: |   logging_rest_api: | ||||||
| {{ toYaml .Values.configLoggingRestApi | indent 4 }} | {{ toYaml .Values.configLoggingRestApi | indent 4 }} | ||||||
|   connection_pooler: |   connection_pooler: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue