Skip to content
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

fix(GrafanaDashboard): properly finish reconciliation in onDashboardDeleted when dashboard is missing #1517

Merged
merged 1 commit into from
May 13, 2024

Conversation

weisdd
Copy link
Collaborator

@weisdd weisdd commented May 5, 2024

In #1504, we introduced a minor regression:
If a dashboard is deleted outside of the operator (e.g. through Grafana UI), then the operator skips Plugin and Status reconciliations. This PR should fix that.

Manual test case:

  • Steps:
    • deploy GrafanaDashboard CR (e.g. from examples/basic);
    • Grafana CR should contain a reference to the dashboard in status.dashboards;
    • remove the dashboard from UI;
    • remove the dashboard CR;
  • Expected results:
    • No errors / panics;
    • Grafana CR should no longer contain a reference to the dashboard in status.dashboards.

@weisdd weisdd changed the title fix(grafanadashboard): properly finish reconciliation in onDashboardDeleted when dashboard is missing fix(GrafanaDashboard): properly finish reconciliation in onDashboardDeleted when dashboard is missing May 5, 2024
@theSuess theSuess enabled auto-merge May 13, 2024 11:16
@theSuess theSuess merged commit d8cd864 into master May 13, 2024
10 checks passed
@theSuess theSuess deleted the fix/ondashboardeleted branch May 13, 2024 11:21
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.

2 participants