From 5b9b4dd947ceef88e22b26e5f1f57d727cff2ea8 Mon Sep 17 00:00:00 2001 From: Sebastian Widmer Date: Mon, 3 Jun 2024 15:26:42 +0200 Subject: [PATCH] Allow clusters to `update` and `patch` cluster status (#271) Fixes Commodore CI compilation which uses `patch` for `compileMeta`. --- controllers/cluster/rbac.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/cluster/rbac.go b/controllers/cluster/rbac.go index f0bd1018..2f4ddfcf 100644 --- a/controllers/cluster/rbac.go +++ b/controllers/cluster/rbac.go @@ -58,7 +58,7 @@ func createOrUpdateClusterRole(ctx context.Context, c client.Client, objMeta met Rules: []rbacv1.PolicyRule{{ APIGroups: []string{synv1alpha1.GroupVersion.Group}, Resources: []string{"clusters", "clusters/status"}, - Verbs: []string{"get", "update"}, + Verbs: []string{"get", "update", "patch"}, ResourceNames: []string{objMeta.Name}, }}, }