Skip to content

feat(helmcapsule): add valuesMode to control Helm reuse-values on upgrade - #1455

Open
leninmehedy wants to merge 1 commit into
mainfrom
feat/01454-helmcapsule-values-mode
Open

leninmehedy wants to merge 1 commit into
mainfrom
feat/01454-helmcapsule-values-mode

Conversation

@leninmehedy

Copy link
Copy Markdown
Member

Closes #1454

What

Adds optional spec.valuesMode to HelmCapsule, so the provisioner can choose upgrade values behavior by updating the CR:

  • Reset (default, unchanged behavior): --reset-values
  • Reuse: --reuse-values
  • ResetThenReuse: --reset-then-reuse-values

Notes

  • Applies to upgrades only; first install is unaffected.
  • Changing only the mode does not change status.valuesHash, so it takes effect on the next real upgrade.
  • With Reuse, keys removed from the spec persist in the release (Helm semantics). Applied values are visible via helm get values.

Testing

  • Unit test: mode is passed from the spec through ReleaseOptions
  • task lint clean; internal/resources/helm and api tests pass

…rade

Add optional spec.valuesMode (Reset, Reuse, ResetThenReuse) so the
provisioner can pick the upgrade values behavior by updating the CR.
Defaults to Reset, which matches the previous hardcoded behavior.

Closes #1454

Signed-off-by: Lenin Mehedy <lenin.mehedy@hashgraph.com>
@leninmehedy
leninmehedy requested review from a team as code owners October 30, 2026 03:41
@leninmehedy
leninmehedy requested a review from alex-au October 30, 2026 03:41
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.

feat(helmcapsule): add spec field to control Helm reuse-values behavior on upgrade

1 participant