From b132b1cc236d97c2f5668d8cc366abd46f2d250b Mon Sep 17 00:00:00 2001 From: Giovanni Liva Date: Thu, 23 Mar 2023 12:23:10 +0100 Subject: [PATCH] remove create Signed-off-by: Giovanni Liva --- operator/config/rbac/role.yaml | 1 - operator/controllers/options/keptnconfig_controller.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/operator/config/rbac/role.yaml b/operator/config/rbac/role.yaml index 592ecca5e3..58f727d947 100644 --- a/operator/config/rbac/role.yaml +++ b/operator/config/rbac/role.yaml @@ -322,7 +322,6 @@ rules: resources: - keptnconfigs verbs: - - create - get - list - watch diff --git a/operator/controllers/options/keptnconfig_controller.go b/operator/controllers/options/keptnconfig_controller.go index 7caf76fa05..5ffad30f3d 100644 --- a/operator/controllers/options/keptnconfig_controller.go +++ b/operator/controllers/options/keptnconfig_controller.go @@ -40,7 +40,7 @@ type KeptnConfigReconciler struct { LastAppliedSpec *optionsv1alpha1.KeptnConfigSpec } -// +kubebuilder:rbac:groups=options.keptn.sh,resources=keptnconfigs,verbs=get;list;watch;create +// +kubebuilder:rbac:groups=options.keptn.sh,resources=keptnconfigs,verbs=get;list;watch // +kubebuilder:rbac:groups=options.keptn.sh,resources=keptnconfigs/status,verbs=get // Reconcile is part of the main kubernetes reconciliation loop which aims to