Zanzana: Fix reconciling role with empty UID (#106045)

This commit is contained in:
Alexander Zobnin
2025-05-27 14:23:29 +02:00
committed by GitHub
parent c0bb72cdb5
commit ef14992f00
2 changed files with 6 additions and 2 deletions
@@ -21,6 +21,7 @@ import (
)
var tracer = otel.Tracer("github.com/grafana/grafana/pkg/accesscontrol/migrator")
var reconcilerLogger = log.New("zanzana.reconciler")
// ZanzanaReconciler is a component to reconcile RBAC permissions to zanzana.
// We should rewrite the migration after we have "migrated" all possible actions
@@ -40,7 +41,7 @@ type ZanzanaReconciler struct {
func ProvideZanzanaReconciler(cfg *setting.Cfg, features featuremgmt.FeatureToggles, client zanzana.Client, store db.DB, lock *serverlock.ServerLockService, folderService folder.Service) *ZanzanaReconciler {
zanzanaReconciler := &ZanzanaReconciler{
cfg: cfg,
log: log.New("zanzana.reconciler"),
log: reconcilerLogger,
features: features,
client: client,
lock: lock,