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: