From 2565b7c88f332b592d6a01c1a1a0db1c5fd442d2 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Mon, 11 Nov 2024 21:18:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9B=20permissions=20to=20update=20kuad?= =?UTF-8?q?rant=20finalizer=20=F0=9F=94=99=20(#1003)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🪛 add kuadrant finalizer 🔙 Signed-off-by: Eguzki Astiz Lezaun * update helm chart Signed-off-by: Eguzki Astiz Lezaun --------- Signed-off-by: Eguzki Astiz Lezaun --- bundle/manifests/kuadrant-operator.clusterserviceversion.yaml | 3 ++- charts/kuadrant-operator/templates/manifests.yaml | 1 + config/rbac/role.yaml | 1 + controllers/state_of_the_world.go | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml b/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml index 5341118d9..fba60bec9 100644 --- a/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml +++ b/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml @@ -105,7 +105,7 @@ metadata: capabilities: Basic Install categories: Integration & Delivery containerImage: quay.io/kuadrant/kuadrant-operator:latest - createdAt: "2024-11-08T16:43:37Z" + createdAt: "2024-11-11T17:42:02Z" description: A Kubernetes Operator to manage the lifecycle of the Kuadrant system operators.operatorframework.io/builder: operator-sdk-v1.32.0 operators.operatorframework.io/project_layout: go.kubebuilder.io/v3 @@ -328,6 +328,7 @@ spec: resources: - authpolicies/finalizers - dnspolicies/finalizers + - kuadrants/finalizers - ratelimitpolicies/finalizers - tlspolicies/finalizers verbs: diff --git a/charts/kuadrant-operator/templates/manifests.yaml b/charts/kuadrant-operator/templates/manifests.yaml index 51510d0d0..b218c08f8 100644 --- a/charts/kuadrant-operator/templates/manifests.yaml +++ b/charts/kuadrant-operator/templates/manifests.yaml @@ -8679,6 +8679,7 @@ rules: resources: - authpolicies/finalizers - dnspolicies/finalizers + - kuadrants/finalizers - ratelimitpolicies/finalizers - tlspolicies/finalizers verbs: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index e36117ada..916c9a132 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -176,6 +176,7 @@ rules: resources: - authpolicies/finalizers - dnspolicies/finalizers + - kuadrants/finalizers - ratelimitpolicies/finalizers - tlspolicies/finalizers verbs: diff --git a/controllers/state_of_the_world.go b/controllers/state_of_the_world.go index 01c181a06..cb42f10cc 100644 --- a/controllers/state_of_the_world.go +++ b/controllers/state_of_the_world.go @@ -57,6 +57,7 @@ var ( // kuadrant permissions //+kubebuilder:rbac:groups=kuadrant.io,resources=kuadrants,verbs=get;list;watch;update;patch +//+kubebuilder:rbac:groups=kuadrant.io,resources=kuadrants/finalizers,verbs=update //+kubebuilder:rbac:groups=kuadrant.io,resources=kuadrants/status,verbs=get;update;patch // core, apps, coordination.k8s,io permissions