Skip to content

Commit

Permalink
Merge pull request #1602 from timp87/fix-grafanafolder-permission-rec…
Browse files Browse the repository at this point in the history
…onciliation

fix: use correct folder uid to update permissions
  • Loading branch information
theSuess authored Jul 4, 2024
2 parents 58f6a0c + 3695416 commit 65c8137
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/grafanafolder_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ func (r *GrafanaFolderReconciler) onFolderCreated(ctx context.Context, grafana *
}

if exists {
// make sure we use the correct UID
uid = remoteUID
// Add to status to cover cases:
// - operator have previously failed to update status
// - the folder was created outside of operator
Expand Down

0 comments on commit 65c8137

Please sign in to comment.