fix(upgrade): fix errors during chart version upgrade #138
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.
Related to #124
What's changed
Wrapped new configurations in
()
for nil-checks. See here.Create a wrapper that forces helm to use
--reset-then-reuse-values
. This is available only with helm 3.14+.helm upgrade --reuse-values
as it would cause values such as(.Values.storage).image.repository
to be empty. This is an invalid image repository.--reset-then-reuse-values
: feat(helm): Add --reset-then-reuse-values flag to 'helm upgrade' helm/helm#9653 that fits our upgrade path more.chart-testing
has not been updated for accommodate that so this is a temporary fix.Removed unused test value files (minimal mode is removed).
Upgraded related github actions.
What's motivation
The test is failing because chart-testing
ct
is also testing upgrade path with--reuse-values
. This causesnil
pointer error as old values do not have newly defined fields in 3.0.Sample run
Sample PR: https://github.com/tthvo/cryostat-helm/actions/runs/9061712431/job/24894069674?pr=7