From 6a1e61b5e5df6ccc514a691de42c628c13311b2f Mon Sep 17 00:00:00 2001 From: Filip Strozik Date: Fri, 22 Mar 2024 14:00:27 +0100 Subject: [PATCH] Add missing clusterrole verbs (#835) --- components/operator/controllers/serverless_controller_rbac.go | 2 +- config/operator/base/rbac/role.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/operator/controllers/serverless_controller_rbac.go b/components/operator/controllers/serverless_controller_rbac.go index 6f7ea692e..823a03bce 100644 --- a/components/operator/controllers/serverless_controller_rbac.go +++ b/components/operator/controllers/serverless_controller_rbac.go @@ -5,7 +5,7 @@ package controllers //+kubebuilder:rbac:groups="",resources=events,verbs=get;list;watch;create;patch //+kubebuilder:rbac:groups="",resources=namespaces,verbs=get;list;watch;create;update;patch;delete;deletecollection //+kubebuilder:rbac:groups="",resources=services;secrets;serviceaccounts;configmaps,verbs=get;list;watch;create;update;patch;delete;deletecollection -//+kubebuilder:rbac:groups="",resources=nodes,verbs=list +//+kubebuilder:rbac:groups="",resources=nodes,verbs=list;watch;get //+kubebuilder:rbac:groups="",resources=persistentvolumeclaims,verbs=get;list;watch;create;update;patch;delete;deletecollection //+kubebuilder:rbac:groups=apps,resources=replicasets,verbs=list diff --git a/config/operator/base/rbac/role.yaml b/config/operator/base/rbac/role.yaml index 42e3874c0..34d01f70b 100644 --- a/config/operator/base/rbac/role.yaml +++ b/config/operator/base/rbac/role.yaml @@ -48,7 +48,9 @@ rules: resources: - nodes verbs: + - get - list + - watch - apiGroups: - "" resources: