feat: add support for additionalEnv to schema jobs #408
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What was changed
Added support for
additionalEnv
to schema jobs (server-job.yaml
).Why?
Currently, the chart doesn't have a way to tune PostgreSQL TLS settings in the jobs that create/update schema. One of the ways to implement that support is through custom environment variables. E.g. for "required" mode, I need to pass:
Checklist
2. How was this tested:
Saved the values below to
custom-values.yaml
Then ran:
helm dependencies update helm template . -f custom-values.yaml --show-only templates/server-job.yaml
The envs should appear in specs of the containers.
NOTE: It was added only to containers that already had section with environment variables. There's probably not much need for that for
check-elasticsearch
,create-elasticsearch-index
, etc.