Zanzana: sync roles and bindings (#96661)
* Sync fix and custom roles and team bindings. * Add collector for user role bindings
This commit is contained in:
@@ -65,8 +65,8 @@ func NewZanzanaReconciler(cfg *setting.Cfg, client zanzana.Client, store db.DB,
|
||||
client,
|
||||
),
|
||||
newResourceReconciler(
|
||||
"basic role permissions",
|
||||
basicRolePermissionsCollector(store),
|
||||
"role permissions",
|
||||
rolePermissionsCollector(store),
|
||||
zanzanaCollector(zanzana.FolderRelations),
|
||||
client,
|
||||
),
|
||||
@@ -76,6 +76,18 @@ func NewZanzanaReconciler(cfg *setting.Cfg, client zanzana.Client, store db.DB,
|
||||
zanzanaCollector([]string{zanzana.RelationAssignee}),
|
||||
client,
|
||||
),
|
||||
newResourceReconciler(
|
||||
"team role bindings",
|
||||
teamRoleBindingsCollector(store),
|
||||
zanzanaCollector([]string{zanzana.RelationAssignee}),
|
||||
client,
|
||||
),
|
||||
newResourceReconciler(
|
||||
"user role bindings",
|
||||
userRoleBindingsCollector(store),
|
||||
zanzanaCollector([]string{zanzana.RelationAssignee}),
|
||||
client,
|
||||
),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user