Change type of invenio.extra_env_from_secret
#119
Merged
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.
Description
This change fixes a typo for the default value (and importantly: type) of the
invenio.extra_env_from_secret
value.Before this change, I got the following warning when setting
invenio.extra_env_from_secret
:This was because the default value of
invenio.extra_env_from_secret
was{}
(the empty object) while it is clearly used as a list:helm-invenio/charts/invenio/templates/web-deployment.yaml
Lines 83 to 89 in eb6544f
helm-invenio/charts/invenio/templates/worker-deployment.yaml
Lines 87 to 93 in eb6544f
So when setting
invenio.extra_env_from_secret
to a list instead of an object, Helm gets nervous. This change fixes that.I've also added an example comment to show what the structure of each list item should be.
In the long term, I believe a more overarching change as discussed in #117 is better. My change here is just a quick bug fix.
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Third-party code
If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: