From dfa4444d400f49c428f390ac4608abae2f73f225 Mon Sep 17 00:00:00 2001 From: Alex Snaps Date: Wed, 18 Oct 2023 18:59:17 -0400 Subject: [PATCH] We need to update the GWs finalizers --- .../kuadrant-operator.clusterserviceversion.yaml | 8 +++++++- config/rbac/role.yaml | 6 ++++++ controllers/limitador_cluster_envoyfilter_controller.go | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml b/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml index 80e5018d0..3b1d6b815 100644 --- a/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml +++ b/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml @@ -92,7 +92,7 @@ metadata: capabilities: Basic Install categories: Integration & Delivery containerImage: quay.io/kuadrant/kuadrant-operator:latest - createdAt: "2023-10-18T09:13:46Z" + createdAt: "2023-10-19T10:15:14Z" operators.operatorframework.io/builder: operator-sdk-v1.28.1 operators.operatorframework.io/project_layout: go.kubebuilder.io/v3 repository: https://github.com/Kuadrant/kuadrant-operator @@ -219,6 +219,12 @@ spec: - patch - update - watch + - apiGroups: + - gateway.networking.k8s.io + resources: + - gateways/finalizers + verbs: + - update - apiGroups: - gateway.networking.k8s.io resources: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 2f4bcfbed..7a8aa135a 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -98,6 +98,12 @@ rules: - patch - update - watch +- apiGroups: + - gateway.networking.k8s.io + resources: + - gateways/finalizers + verbs: + - update - apiGroups: - gateway.networking.k8s.io resources: diff --git a/controllers/limitador_cluster_envoyfilter_controller.go b/controllers/limitador_cluster_envoyfilter_controller.go index b54fc3b89..dafdc5f14 100644 --- a/controllers/limitador_cluster_envoyfilter_controller.go +++ b/controllers/limitador_cluster_envoyfilter_controller.go @@ -46,6 +46,7 @@ type LimitadorClusterEnvoyFilterReconciler struct { //+kubebuilder:rbac:groups=networking.istio.io,resources=envoyfilters,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups=gateway.networking.k8s.io,resources=gateways,verbs=get +//+kubebuilder:rbac:groups=gateway.networking.k8s.io,resources=gateways/finalizers,verbs=update // For more details, check Reconcile and its Result here: // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile