File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed
Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 8080 value : {{ .Values.pgstacBootstrap.settings.envVars.LOAD_FIXTURES | quote }}
8181 - name : KEEP_ALIVE
8282 value : {{ .Values.pgstacBootstrap.settings.envVars.KEEP_ALIVE | quote }}
83- {{- with .Values.pgstacBootstrap.settings.extraEnvVars }}
84- {{- toYaml . | nindent 12 }}
83+ {{- range $key, $value := .Values.pgstacBootstrap.settings.extraEnvVars }}
84+ - name : {{ $key | quote }}
85+ value : {{ $value | quote }}
8586 {{- end }}
8687 # TODO (emmanuel): to be removed when we have a generic way to
8788 # inject secrets in the pod
Original file line number Diff line number Diff line change @@ -87,10 +87,16 @@ spec:
8787 - containerPort : {{ $.Values.service.port }}
8888 resources :
8989 {{- toYaml (index $v "settings" "resources") | nindent 10 }}
90- {{- if $.Values.postgrescluster.enabled }}
9190 env :
91+ - name : DUMMY_ENV_VAR
92+ value : 1
93+ {{- if $.Values.postgrescluster.enabled }}
9294 {{- include "eoapi.pgstacSecrets" $ | nindent 12 }}
9395 {{- end }}
96+ {{- range $key, $value := .Values.pgstacBootstrap.settings.extraEnvVars }}
97+ - name : {{ $key | quote }}
98+ value : {{ $value | quote }}
99+ {{- end }}
94100 envFrom :
95101 # NOTE: there's no reason we need to use a `ConfigMap` or `Secret` here to get os env vars into the pod.
96102 # we could just template them out here immediately with `value: $_` but this allows us
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ pgstacBootstrap:
181181 # toggle to `true` if you want to keep the job running as db jumpbox
182182 KEEP_ALIVE : " false"
183183 # extra env vars to set in the pgstacBootstrap pod
184- extraEnvVars : []
184+ extraEnvVars : {}
185185 # extra env var from mounts to set in the pgstacBootstrap pod
186186 extraEnvFrom : []
187187 # extra volumes to mount in the pgstacBootstrap pod
@@ -269,7 +269,7 @@ raster:
269269 # https://www.uvicorn.org/settings/#production
270270 WEB_CONCURRENCY : " 5"
271271 # Additional environment variables
272- extraEnvVars : []
272+ extraEnvVars : {}
273273
274274multidim :
275275 enabled : false # disabled by default
@@ -340,7 +340,7 @@ multidim:
340340 # https://www.uvicorn.org/settings/#production
341341 WEB_CONCURRENCY : " 5"
342342 # Additional environment variables
343- extraEnvVars : []
343+ extraEnvVars : {}
344344
345345stac :
346346 enabled : true
@@ -400,7 +400,7 @@ stac:
400400 WEB_CONCURRENCY : " 5"
401401 DB_MIN_CONN_SIZE : " 1"
402402 # Additional environment variables
403- extraEnvVars : []
403+ extraEnvVars : {}
404404
405405vector :
406406 enabled : true
@@ -464,7 +464,7 @@ vector:
464464 # https://www.uvicorn.org/settings/#production
465465 WEB_CONCURRENCY : " 5"
466466 # Additional environment variables
467- extraEnvVars : []
467+ extraEnvVars : {}
468468
469469docServer :
470470 enabled : true
You can’t perform that action at this time.
0 commit comments