addon-controller icon indicating copy to clipboard operation
addon-controller copied to clipboard

BUG: Helm charts deployed by ClusterProfile are uninstalled and reinstalled after Sveltos upgrade to v1.0.1

Open irizzant opened this issue 5 months ago • 1 comments

Problem Description

After upgrading Sveltos installation to version 1.0.1, I observed that the Helm charts deployed by my ClusterProfile resources were removed from the managed clusters. Sveltos uninstalled these charts and then reinstalled them from scratch. After discussing this on Slack (https://projectsveltos.slack.com/archives/C046L9HFJFP/p1755532172975369), it was found that the ClusterProfile receives a calculated hash, and the algorithm for this hash was changed in v1.0.1, leading to this issue.

System Information

CLUSTERAPI VERSION: SVELTOS VERSION: v1.0.1 KUBERNETES VERSION: v1.33

Logs

N/A

irizzant avatar Aug 20 '25 18:08 irizzant

Thank you. Just to clarify for everyone else who reads this, Sveltos triggers an upgrade when hash changes (not an uninstall and reinstall). You can see that because the helm revision increases.

Sveltos upgrade in general wont change the hash. It happened in v1.0.1 because we had to change the template instantiation.

The goal of this bug is to add an upgrade test that verifies hash wont change across upgrades.

gianlucam76 avatar Aug 21 '25 06:08 gianlucam76

This has been fixed now by separating drift-detection deployment upgrade from the helm charts/resources deployments.

gianlucam76 avatar Dec 06 '25 09:12 gianlucam76