From ef15ab0cd1bb76fb60ab672f91d5cfa1779f4e55 Mon Sep 17 00:00:00 2001 From: Ragot Geoffrey Date: Thu, 15 Feb 2024 15:46:17 +0100 Subject: [PATCH] fix(operator): missing deletecollection access on benthosstreams (#1249) --- components/operator/config/rbac/role.yaml | 1 + .../rbac.authorization.k8s.io_v1_clusterrole_manager-role.yaml | 1 + .../operator/internal/resources/benthosstreams/controller.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/operator/config/rbac/role.yaml b/components/operator/config/rbac/role.yaml index df6f7536a5..f7c147584b 100644 --- a/components/operator/config/rbac/role.yaml +++ b/components/operator/config/rbac/role.yaml @@ -210,6 +210,7 @@ rules: verbs: - create - delete + - deletecollection - get - list - patch diff --git a/components/operator/helm/templates/gen/rbac.authorization.k8s.io_v1_clusterrole_manager-role.yaml b/components/operator/helm/templates/gen/rbac.authorization.k8s.io_v1_clusterrole_manager-role.yaml index 4bf8ccffb7..46ec418613 100644 --- a/components/operator/helm/templates/gen/rbac.authorization.k8s.io_v1_clusterrole_manager-role.yaml +++ b/components/operator/helm/templates/gen/rbac.authorization.k8s.io_v1_clusterrole_manager-role.yaml @@ -209,6 +209,7 @@ rules: verbs: - create - delete + - deletecollection - get - list - patch diff --git a/components/operator/internal/resources/benthosstreams/controller.go b/components/operator/internal/resources/benthosstreams/controller.go index 776b765d4b..2554476822 100644 --- a/components/operator/internal/resources/benthosstreams/controller.go +++ b/components/operator/internal/resources/benthosstreams/controller.go @@ -25,7 +25,7 @@ import ( "k8s.io/apimachinery/pkg/types" ) -//+kubebuilder:rbac:groups=formance.com,resources=benthosstreams,verbs=get;list;watch;create;update;patch;delete +//+kubebuilder:rbac:groups=formance.com,resources=benthosstreams,verbs=get;list;watch;create;update;patch;delete;deletecollection //+kubebuilder:rbac:groups=formance.com,resources=benthosstreams/status,verbs=get;update;patch //+kubebuilder:rbac:groups=formance.com,resources=benthosstreams/finalizers,verbs=update