Skip to content

Conversation

v-yarotsky
Copy link
Contributor

@v-yarotsky v-yarotsky commented Jul 24, 2025

This PR adds support for .spec.source.helm.ignoreMissingValueFiles on Application resources.

`testdata` is the conventional directory name for test fixtures.

Also, removing call to `os.Chdir` in one of the tests - it affected other
tests after it!
Instead, we're explicitly setting `testdata` to be the working directory
for the test.
@v-yarotsky v-yarotsky requested a review from a team as a code owner July 24, 2025 20:40
Copy link
Member

@ejholmes ejholmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I've always felt like ignoreMissingValueFiles is incredibly risky in helm. Makes a certain classes of incidents possible, that otherwise wouldn't be.

But since helm supports this, probably makes sense to support it here 👍

@v-yarotsky
Copy link
Contributor Author

Agreed on riskiness. But it can be useful as a temporary measure for restructuring configs, and it is supported by ArgoCD, which we're mimicking.

@v-yarotsky v-yarotsky merged commit bf592ab into main Jul 24, 2025
6 checks passed
@v-yarotsky v-yarotsky deleted the vy-respect-ignore-missing-value-files branch July 24, 2025 20:52
v-yarotsky added a commit that referenced this pull request Jul 25, 2025
Follow-up for #31

We were not checking for `ignoreMissingValueFiles` when generating file
hashes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants