Configure chart-testing to install all charts #2310
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Helm chart tests are failing for PRs that only modify the operator chart without bumping the operator-crds chart version (e.g., PR #2176).
Root Cause
By default,
ct installonly installs charts that have changed in a PR. The operator chart has an implicit dependency on the operator-crds chart:MCPServer.Spec.GroupRefincmd/thv-operator/main.go:82-96)ct installdetects only that chart as changedct installinstalls ONLY the operator chart (not operator-crds)Why This Happens
The dependency between operator and operator-crds charts is not declared in Chart.yaml, so chart-testing doesn't know to install both charts together. This is a common pattern when charts need to be independently versioned but have runtime dependencies.
Solution
Configure
ct installto useall: true, which tells chart-testing to install all charts in the chart directories regardless of which ones changed. This ensures:Changes
all: truetoct-install.yamlTesting
This will fix the failing Helm chart tests in PR #2176 and prevent similar issues in the future.
Alternative Solutions Considered
The
all: trueapproach is the simplest and most maintainable solution for charts with implicit dependencies.🤖 Generated with Claude Code