Skip to content

tests(helm): Annotated crds_test.yml for helm unittest >= 1.1.0#1730

Merged
jvanz merged 1 commit into
kubewarden:mainfrom
viccuad:test/fix-helmunittest
May 11, 2026
Merged

tests(helm): Annotated crds_test.yml for helm unittest >= 1.1.0#1730
jvanz merged 1 commit into
kubewarden:mainfrom
viccuad:test/fix-helmunittest

Conversation

@viccuad
Copy link
Copy Markdown
Member

@viccuad viccuad commented May 11, 2026

Description

Helm unittest >= 1.1.0 doesn't automatically prepend the templates/ prefix to the path, hence the tests were failing to find the correct files.

Test

CI.

Additional Information

Tradeoff

Potential improvement

Checklist

Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Copilot AI review requested due to automatic review settings May 11, 2026 10:41
@viccuad viccuad requested a review from a team as a code owner May 11, 2026 10:41
@viccuad viccuad self-assigned this May 11, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Helm unittest chart tests to reference templates using explicit templates/-prefixed paths, aligning with helm-unittest >= 1.1.0 behavior (which no longer implicitly prepends templates/).

Changes:

  • Updated template: entries in the CRD unittest suite to use templates/crds/... paths so the tests can locate the rendered templates under newer helm-unittest versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jvanz jvanz merged commit 4ba3557 into kubewarden:main May 11, 2026
30 of 31 checks passed
@github-project-automation github-project-automation Bot moved this from Pending review to Done in Kubewarden Admission Controller May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants