From 3c3b3cb9296dfc9f99c3c64a386bd8b76bdff949 Mon Sep 17 00:00:00 2001 From: HF Date: Wed, 31 Jan 2024 16:35:20 +0800 Subject: [PATCH] Add missing verb to the role of node lifecycle controller (#1936) Signed-off-by: HF --- charts/yurt-manager/templates/yurt-manager-auto-generated.yaml | 1 + .../controller/yurtstaticset/yurtstaticset_controller.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/yurt-manager/templates/yurt-manager-auto-generated.yaml b/charts/yurt-manager/templates/yurt-manager-auto-generated.yaml index 42f391a1b8a..3594c333df2 100644 --- a/charts/yurt-manager/templates/yurt-manager-auto-generated.yaml +++ b/charts/yurt-manager/templates/yurt-manager-auto-generated.yaml @@ -356,6 +356,7 @@ rules: resources: - pods/status verbs: + - patch - update - apiGroups: - "" diff --git a/pkg/yurtmanager/controller/yurtstaticset/yurtstaticset_controller.go b/pkg/yurtmanager/controller/yurtstaticset/yurtstaticset_controller.go index 32b868a286b..30394ef6af9 100644 --- a/pkg/yurtmanager/controller/yurtstaticset/yurtstaticset_controller.go +++ b/pkg/yurtmanager/controller/yurtstaticset/yurtstaticset_controller.go @@ -261,7 +261,7 @@ func nodeTurnReady(evt event.UpdateEvent) bool { //+kubebuilder:rbac:groups=apps.openyurt.io,resources=yurtstaticsets/status,verbs=get;update;patch //+kubebuilder:rbac:groups=apps.openyurt.io,resources=yurtstaticsets/finalizers,verbs=update //+kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch;create;update;patch;delete -//+kubebuilder:rbac:groups=core,resources=pods/status,verbs=update +//+kubebuilder:rbac:groups=core,resources=pods/status,verbs=update;patch //+kubebuilder:rbac:groups=core,resources=nodes,verbs=get;list;watch;update;patch //+kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete