Skip to content

(bug) Helm deployment: react to patches changes#1686

Merged
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:helm-patches
Apr 2, 2026
Merged

(bug) Helm deployment: react to patches changes#1686
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:helm-patches

Conversation

@gianlucam76
Copy link
Copy Markdown
Member

Previously, when Helm charts were deployed with patches, the ClusterSummary would enter the Provisioning state, but Sveltos would fail to trigger a redeployment of the helm chart. This occurred because the reconciliation logic only compared the deployed Helm chart version and its values; since these remained unchanged, Sveltos assumed no action was required. Consequently, any modifications introduced via patches were effectively ignored.

This PR fixes this behavior by introducing a hash for patches. Sveltos now calculates and stores a hash of the patches defined in the profile and compares it against the previously deployed state. By tracking this hash alongside chart versions and values, Sveltos can accurately detect when patches have changed and trigger the necessary Helm redeployment to bring the cluster into the desired state.

Fixes #1671

Previously, when Helm charts were deployed with patches, the ClusterSummary would enter the
Provisioning state, but Sveltos would fail to trigger a redeployment of the helm chart.
This occurred because the reconciliation logic only compared the deployed Helm chart version
and its values; since these remained unchanged, Sveltos assumed no action was required.
Consequently, any modifications introduced via patches were effectively ignored.

This PR fixes this behavior by introducing a hash for patches. Sveltos now calculates and stores
a hash of the patches defined in the profile and compares it against the previously deployed state.
By tracking this hash alongside chart versions and values, Sveltos can accurately detect when patches
have changed and trigger the necessary Helm redeployment to bring the cluster into the desired state.
@gianlucam76 gianlucam76 merged commit 725b5c7 into projectsveltos:main Apr 2, 2026
8 checks passed
@gianlucam76 gianlucam76 deleted the helm-patches branch April 2, 2026 09:19
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.

BUG: patches aren't applied when deploying helm charts unless an updating the helm chart

1 participant