Skip to content

Cancel rendering helmfile parts once the missing env is detected in the previous part#941

Merged
yxxhero merged 2 commits into
mainfrom
fix-subhelmfile-env-skipping
Jul 23, 2023
Merged

Cancel rendering helmfile parts once the missing env is detected in the previous part#941
yxxhero merged 2 commits into
mainfrom
fix-subhelmfile-env-skipping

Conversation

@mumoshu

@mumoshu mumoshu commented Jul 23, 2023

Copy link
Copy Markdown
Contributor

In #885, Helmfile v0.155.0, we made the missing env detection happen "after all the helmfile parts in a helmfile.yaml(.gotmpl) are rendered and merged".

That was indeed incorrect and resulted in any helmfile template part after the part that defines the environments part potentially failing.

This fixes that, by moving the env check a bit earlier than before. It now defers the env check until it sees one or more environments in the accumulated helmfile config.

Fixes #913

@mumoshu mumoshu changed the title Cancel rendering helmfile parts once the missing env is detected in t… Cancel rendering helmfile parts once the missing env is detected in the previous part Jul 23, 2023
@yxxhero

yxxhero commented Jul 23, 2023

Copy link
Copy Markdown
Member

@mumoshu hi. please fix DCO issue.

@mumoshu mumoshu force-pushed the fix-subhelmfile-env-skipping branch from 92b6141 to e42bf66 Compare July 23, 2023 08:26
@yxxhero

yxxhero commented Jul 23, 2023

Copy link
Copy Markdown
Member

awesome job. @mumoshu

@yxxhero yxxhero merged commit 858c233 into main Jul 23, 2023
@yxxhero yxxhero deleted the fix-subhelmfile-env-skipping branch July 23, 2023 09:23
@mumoshu

mumoshu commented Jul 23, 2023

Copy link
Copy Markdown
Contributor Author

@yxxhero Thanks for reviewing!

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 25, 2023
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.

Environment filtering not working properly in v0.155.0

2 participants