Skip to content

Conversation

Baarsgaard
Copy link
Collaborator

@Baarsgaard Baarsgaard commented Jul 23, 2025

The initial goal was to just delete created CRs and trigger the finalizer.
Unfortunately GrafanaDashboard, GrafanaDatasource, and GrafanaFolder all returned successful when attempting to finalize against the dummy Grafana instance used to provoke Synchronization failures.

I removed the early exit in favour of attempting and potentially failing to delete the resource.
All finalizers will now return a success if the resource was deleted or didn't exist, and an error otherwise.

This should lead to a few more requests when finalizing resources, but more correct deletion outcomes in edge cases.

The downside of this is the need to expect an error when the dummy instance, which never responds, is being deleted from.

@github-actions github-actions bot added the test this PR modifies test files/cases label Jul 23, 2025
@Baarsgaard Baarsgaard changed the base branch from master to chore_test_synchronized_conditions July 23, 2025 17:13
@Baarsgaard Baarsgaard changed the title test(Controllers): delete CRs and run finalizers test(controllers): delete CRs and run finalizers Jul 23, 2025
@Baarsgaard Baarsgaard force-pushed the chore_test_synchronized_conditions branch from 879c658 to 1e3c7b4 Compare July 25, 2025 19:07
@Baarsgaard Baarsgaard force-pushed the chore_test_synchronized_conditions branch from 1e3c7b4 to cb1ce9d Compare July 27, 2025 16:29
Base automatically changed from chore_test_synchronized_conditions to master July 28, 2025 07:14
@Baarsgaard Baarsgaard changed the title test(controllers): delete CRs and run finalizers chore(controllers): Test CR deletion, Update finalizer behaviour of Dashboard, Datasource, and Folder Aug 22, 2025
@Baarsgaard Baarsgaard marked this pull request as ready for review August 22, 2025 18:51
@Baarsgaard Baarsgaard added this pull request to the merge queue Aug 24, 2025
Merged via the queue into master with commit 225c90b Aug 24, 2025
16 checks passed
@Baarsgaard Baarsgaard deleted the test_finalizers branch August 24, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore test this PR modifies test files/cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants