Skip to content

(bug) ResourceSummary collection #1160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2025
Merged

Conversation

gianlucam76
Copy link
Member

When agents are deployed in managed cluster, collecting ResourceSummary from the management cluster always caused an error to be logged (configMap projectsveltos/drift-detection-version missing).

That is because ResourceSummary CRD is present in the management cluster irrespective of whether there is a profile in drift detection mode is matching the management cluster.

To fix this, irrespective of the mode, always collect clusters with drift detection deployed and only collect resourceSummary instances from those clusters.

This PR also fixes a crash when Sveltos is referencing a Flux Source and the Flux source is deleted.

Fixes #1158
Fixes #1159

When agents are deployed in managed cluster, collecting ResourceSummary
from the management cluster always caused an error to be logged (configMap
projectsveltos/drift-detection-version missing).

That is because ResourceSummary CRD is present in the management cluster
irrespective of whether there is a profile in drift detection mode is
matching the management cluster.

To fix this, irrespective of the mode, always collect clusters with
drift detection deployed and only collect resourceSummary instances from
those clusters.

This PR also fixes a crash when Sveltos is referencing a Flux Source and
the Flux source is deleted.
@gianlucam76 gianlucam76 merged commit be20d1f into projectsveltos:main Apr 24, 2025
6 checks passed
@gianlucam76 gianlucam76 deleted the bugs branch April 24, 2025 17:26
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: Core on Flux Source deletion BUG: failed to collect ResourceSummaries from management cluster
2 participants