Skip to content

Commit e2fff1b

Browse files
authored
Update deployment_workflows.yaml
Fix condition using has key with values.environmentVariables
1 parent cc05a6e commit e2fff1b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

charts/retool/templates/deployment_workflows.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,16 @@ spec:
9999
- name: DISABLE_JAVA_DBCONNECTOR
100100
value: "true"
101101
{{ end }}
102-
{{- if not (or (hasKey .Values.env "DBCONNECTOR_POSTGRES_POOL_MAX_SIZE") (hasKey .Values.environmentVariables "DBCONNECTOR_POSTGRES_POOL_MAX_SIZE")) }}
102+
{{- $poolMaxSet := false }}
103+
{{- range .Values.environmentVariables }}
104+
{{- if eq .name "DBCONNECTOR_POSTGRES_POOL_MAX_SIZE" }}
105+
{{- $poolMaxSet = true }}
106+
{{- end }}
107+
{{- end }}
108+
{{- if not (or (hasKey .Values.env "DBCONNECTOR_POSTGRES_POOL_MAX_SIZE") $poolMaxSet) }}
103109
- name: DBCONNECTOR_POSTGRES_POOL_MAX_SIZE
104110
value: "100"
105-
{{- end }}
111+
{{- end }}
106112
- name: DBCONNECTOR_QUERY_TIMEOUT_MS
107113
{{- if .Values.workflows.dbConnectorTimeout }}
108114
value: {{ .Values.workflows.dbConnectorTimeout | quote}}

0 commit comments

Comments
 (0)