Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

deploy/helm: fix order of templating #1126

Merged
merged 1 commit into from
Feb 14, 2022
Merged

deploy/helm: fix order of templating #1126

merged 1 commit into from
Feb 14, 2022

Conversation

paulfantom
Copy link
Contributor

@paulfantom paulfantom commented Feb 8, 2022

To use tpl function, content needs to be first unpacked/serialized with toYaml and not the other way round.

Description

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

Sorry for brevity of doing this edit via GUI (hence branch is not in my fork) :)

Merge requirements

Please take into account the following non-code changes that you may need to make with your PR:

  • CHANGELOG entry for user-facing changes
  • Updated the relevant documentation

@paulfantom
Copy link
Contributor Author

Tested this locally by changing extraEnv in values.yaml to:

extraEnv:
- name: "ok"
  value: "{{ .Chart.Version }}"

And running helm template . -f values.yaml.

After we migrate helm charts I will be adding such tests to CI

@paulfantom paulfantom marked this pull request as ready for review February 10, 2022 11:45
@paulfantom paulfantom requested a review from a team as a code owner February 10, 2022 11:48
@paulfantom paulfantom enabled auto-merge (rebase) February 14, 2022 09:02
auto-merge was automatically disabled February 14, 2022 09:19

Rebase failed

To use `tpl` function, content needs to be first unpacked/serialized with `toYaml` and not the other way round.

Signed-off-by: Paweł Krupa (paulfantom) <[email protected]>
@paulfantom paulfantom enabled auto-merge (rebase) February 14, 2022 09:31
@paulfantom paulfantom merged commit 1ceecae into master Feb 14, 2022
@paulfantom paulfantom deleted the paulfantom-patch-1 branch February 14, 2022 10:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants