Skip to content

Conversation

@gianlucam76
Copy link
Member

Hash functions have changed since release v1.4.0.
When Sveltos detects a hash change, it triggers a redeployment of the resources listed in the profile (Helm charts or raw Kubernetes resources).

This PR introduces an initialization phase to handle this transition gracefully. By pre-calculating and updating these hashes before the main controller starts, we ensure the controller does not misinterpret the new hashing logic as a configuration change. This prevents unnecessary, redeployments across all managed clusters that would otherwise occur when the controller detects a mismatch between the stored and newly calculated hashes.

Hash functions have changed since release v1.4.0.
When Sveltos detects a hash change, it triggers a redeployment of the
resources listed in the profile (Helm charts or raw Kubernetes resources).

This PR introduces an initialization phase to handle this transition gracefully.
By pre-calculating and updating these hashes before the main controller starts,
we ensure the controller does not misinterpret the new hashing logic as a
configuration change. This prevents unnecessary, redeployments across all managed
clusters that would otherwise occur when the controller detects a mismatch between
the stored and newly calculated hashes.
@gianlucam76 gianlucam76 merged commit 6d02b15 into projectsveltos:main Feb 9, 2026
8 checks passed
@gianlucam76 gianlucam76 deleted the init-container branch February 9, 2026 08:30
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