Skip to content

Commit

Permalink
fix: do not delete non-existing dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
pb82 committed Apr 23, 2024
1 parent aa532c3 commit d0e5d78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/dashboard_controller.go
Expand Up @@ -307,6 +307,9 @@ func (r *GrafanaDashboardReconciler) onDashboardDeleted(ctx context.Context, nam
var notFound *dashboards.GetDashboardByUIDNotFound
if !errors.As(err, &notFound) {
return err
} else {
// if the dashboard is not found, then we can return directly here
return nil
}
}
dash := resp.GetPayload()
Expand Down

0 comments on commit d0e5d78

Please sign in to comment.