Skip to content

Conversation

v-yarotsky
Copy link
Contributor

Follow-up for #31

We were not checking for ignoreMissingValueFiles when generating file hashes.

Follow-up for #31

We were not checking for `ignoreMissingValueFiles` when generating file
hashes.
}
crd := data[0]

got, err := GenerateHash(crd, tt.ignoreValueFile)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method was not covered previously

@@ -219,11 +213,9 @@ func GenerateHash(crd *v1alpha1.Application, ignoreValueFile string) (string, er
if crd.Spec.Source.Helm != nil && len(crd.Spec.Source.Helm.ValueFiles) > 0 {
oHash := sha256.New()
overrideFiles := crd.Spec.Source.Helm.ValueFiles
matchDots := regexp.MustCompile(`\.\.\/`)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

checking if this will break things, I'm not quite sure what it was trying to achieve

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I've staged hashes for demo/ in git, reverted my changes and reran - no diff, so seems reasonably safe.

@v-yarotsky v-yarotsky marked this pull request as ready for review July 29, 2025 20:50
@v-yarotsky v-yarotsky requested a review from a team as a code owner July 29, 2025 20:50
@v-yarotsky v-yarotsky merged commit 3fdc849 into main Jul 29, 2025
9 checks passed
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.

3 participants