Skip to content

chore(folder): Remove code that deletes missing CRs from instances #1990

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Baarsgaard
Copy link
Collaborator

@Baarsgaard Baarsgaard commented May 8, 2025

As we previously discussed, this PR removes the logic that attempts to delete folders from Grafana instances where the CR has been deleted.
Going forward we rely entirely on the finalizer for cleanup.

The implementation is stolen from LibraryPanels and ContactPoints.

Once this logic has been removed from all controllers, the plan is to refactor the startup sync to be owned by the Grafana Controller.
Rather than looping through N Grafanas multiple times, we can do it once in the Grafana controller potentially reducing api writes by only updating the status once per instance.

@github-actions github-actions bot added the chore label May 8, 2025
@Baarsgaard Baarsgaard marked this pull request as ready for review May 8, 2025 17:39
@Baarsgaard Baarsgaard changed the title Chore(FolderController): Remove code that deletes missing CRs from instances chore(folder): Remove code that deletes missing CRs from instances May 12, 2025
Copy link
Member

@theSuess theSuess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will merge after the next release (holding my approval so I don't accidentally merge 😅)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants