Skip to content

Commit 4a38669

Browse files
authored
use tpl in value objects containing arrays (zalando#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
1 parent 0e3cbcd commit 4a38669

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

charts/postgres-operator/templates/operatorconfiguration.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
configuration:
1313
{{ toYaml .Values.configGeneral | indent 2 }}
1414
users:
15-
{{ toYaml .Values.configUsers | indent 4 }}
15+
{{ tpl (toYaml .Values.configUsers) . | indent 4 }}
1616
major_version_upgrade:
1717
{{ toYaml .Values.configMajorVersionUpgrade | indent 4 }}
1818
kubernetes:
@@ -21,7 +21,7 @@ configuration:
2121
{{- end }}
2222
pod_service_account_name: {{ include "postgres-pod.serviceAccountName" . }}
2323
oauth_token_secret_name: {{ template "postgres-operator.fullname" . }}
24-
{{ toYaml .Values.configKubernetes | indent 4 }}
24+
{{ tpl (toYaml .Values.configKubernetes) . | indent 4 }}
2525
postgres_pod_resources:
2626
{{ toYaml .Values.configPostgresPodResources | indent 4 }}
2727
timeouts:
@@ -35,7 +35,7 @@ configuration:
3535
debug:
3636
{{ toYaml .Values.configDebug | indent 4 }}
3737
teams_api:
38-
{{ toYaml .Values.configTeamsApi | indent 4 }}
38+
{{ tpl (toYaml .Values.configTeamsApi) . | indent 4 }}
3939
logging_rest_api:
4040
{{ toYaml .Values.configLoggingRestApi | indent 4 }}
4141
connection_pooler:

0 commit comments

Comments
 (0)