Skip to content

Conversation

@kiblik
Copy link
Contributor

@kiblik kiblik commented Nov 4, 2025

After #13210, charts with enabled PVC were complaining

executing "defectdojo/templates/media-pvc.yaml" at <.Values.extraAnnotations>: nil pointer evaluating interface {}.extraAnnotations

JFIY @fernandezcuesta, we missed some details. I hope this is the only missed detail.
More complex tests of HELM charts would be useful.

@fernandezcuesta
Copy link
Contributor

Oops my bad, sorry for that. I'm more convinced to always use $ regardless of whether inside a with statement or not....

@kiblik
Copy link
Contributor Author

kiblik commented Nov 4, 2025

Oops my bad, sorry for that. I'm more convinced to always use $ regardless of whether inside a with statement or not....

If we would perform another "large rewrite", I would probably go with $ everywhere. But for now, this fix is enough in my opinion.

Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

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

Approved

@valentijnscholten valentijnscholten added this to the 2.52.1 milestone Nov 5, 2025
@kiblik
Copy link
Contributor Author

kiblik commented Nov 6, 2025

Based on #13620 (comment), I merged changes into this PR.
There is no other HELM-related PR that would have this kind of easy fix. Others need more time for review.

@valentijnscholten valentijnscholten merged commit e2dbca5 into DefectDojo:bugfix Nov 7, 2025
150 checks passed
@kiblik kiblik deleted the helm_fix_pvc branch November 7, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm media-pvc nil pointer in 2.52.0

6 participants