Skip to content

feat: Scope Helm redeploy on drift to only the chart that drifted - #1915

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:multiple-charts
Aug 14, 2026
Merged

feat: Scope Helm redeploy on drift to only the chart that drifted#1915
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:multiple-charts

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

When a ClusterProfile deploys multiple Helm charts with syncMode ContinuousWithDriftDetection, drift on a single resource used to mark the entire Helm feature for redeploy, and unconditionally upgraded every chart in the profile regardless of whether it had drifted or even changed. HelmChartSummary gains NeedsRedeploy, set per chart when drift is detected, and shouldUpgrade now checks it before falling through to the existing value/patches/version diff, instead of always returning true for drift-detection mode. A chart neither drifted nor changed is left alone. Falls back to marking every chart when no chart-scoped info is available so drift is never silently missed, just not always scoped.

When a ClusterProfile deploys multiple Helm charts with syncMode ContinuousWithDriftDetection, drift on a
single resource used to mark the entire Helm feature for redeploy, and unconditionally upgraded every chart
in the profile regardless of whether it had drifted or even changed.
HelmChartSummary gains NeedsRedeploy, set per chart when drift is detected, and shouldUpgrade now checks it
before falling through to the existing value/patches/version diff, instead of always returning true for
drift-detection mode. A chart neither drifted nor changed is left alone.
Falls back to marking every chart when no chart-scoped info is available so drift is never silently missed,
just not always scoped.
@gianlucam76
gianlucam76 merged commit 2a611d9 into projectsveltos:main Aug 14, 2026
27 of 29 checks passed
@gianlucam76
gianlucam76 deleted the multiple-charts branch August 14, 2026 13:49
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.

1 participant