Zanzana: fix generic schema (#95648)

* Change schema so that resource checks on a folder walks the tree
This commit is contained in:
Karl Persson
2024-10-31 14:34:48 +01:00
committed by GitHub
parent 4e1f0dadbd
commit dfa8f786d2
11 changed files with 147 additions and 51 deletions
@@ -72,8 +72,14 @@ func NewZanzanaReconciler(client zanzana.Client, store db.DB, lock *serverlock.S
client,
),
newResourceReconciler(
"managed permissison",
managedPermissionsCollector2(store),
"managed folder permissions",
managedPermissionsCollector2(store, zanzana.KindFolders),
zanzanaCollector(client, zanzana.Folder2Relations),
client,
),
newResourceReconciler(
"managed dashboard permissions",
managedPermissionsCollector2(store, zanzana.KindDashboards),
zanzanaCollector(client, zanzana.ResourceRelations),
client,
),