Skip to content

(bug) advance drift-detection-manager#1723

Merged
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:drift-kustomize
Apr 18, 2026
Merged

(bug) advance drift-detection-manager#1723
gianlucam76 merged 1 commit intoprojectsveltos:mainfrom
gianlucam76:drift-kustomize

Conversation

@gianlucam76
Copy link
Copy Markdown
Member

This picks a fix in drift-detection-manager making sure Sveltos detects and fixes configuration drift for resources deployed by Sveltos because of KustomizationRefs.

This PR also adds a tests that verifies this scenario:

  1. Flux is deployed by Sveltos in the management cluster
  2. A GitRepository is created
  3. A second ClusterProfile references the GitRepository in the KustomizationRefs section
  4. Test verifies resources are correctly deployed
  5. One of those resources is deleted by pointing directly to the managed cluster
  6. Test verifies resource is recreated

Fixes #1722

@gianlucam76 gianlucam76 force-pushed the drift-kustomize branch 2 times, most recently from dba3004 to 22e2f6a Compare April 18, 2026 19:00
This picks a fix in drift-detection-manager making sure Sveltos detects
and fixes configuration drift for resources deployed by Sveltos because
of KustomizationRefs.

This PR also adds a tests that verifies this scenario:
1. Flux is deployed by Sveltos in the management cluster
2. A GitRepository is created
3. A second ClusterProfile references the GitRepository in
the KustomizationRefs section
4. Test verifies resources are correctly deployed
5. One of those resources is deleted by pointing directly to the
managed cluster
6. Test verifies resource is recreated
@gianlucam76 gianlucam76 merged commit b173798 into projectsveltos:main Apr 18, 2026
15 of 16 checks passed
@gianlucam76 gianlucam76 deleted the drift-kustomize branch April 18, 2026 20:35
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: KustomizeRefs resources are ignored by Drift Detection

1 participant