From 1a45d98905b00f0b893901e9c84d389aa71ff9d5 Mon Sep 17 00:00:00 2001 From: Zhiwei Yin Date: Wed, 15 May 2024 10:38:09 +0800 Subject: [PATCH] igonre failed to get pullsecret error Signed-off-by: Zhiwei Yin --- .../clustermanagercontroller/clustermanager_controller.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/operator/operators/clustermanager/controllers/clustermanagercontroller/clustermanager_controller.go b/pkg/operator/operators/clustermanager/controllers/clustermanagercontroller/clustermanager_controller.go index 453169cd1..3b6cbcebe 100644 --- a/pkg/operator/operators/clustermanager/controllers/clustermanagercontroller/clustermanager_controller.go +++ b/pkg/operator/operators/clustermanager/controllers/clustermanagercontroller/clustermanager_controller.go @@ -262,7 +262,9 @@ func (n *clusterManagerController) sync(ctx context.Context, controllerContext f // check imagePulSecret here because there will be a warning event FailedToRetrieveImagePullSecret // if imagePullSecret does not exist. if config.ImagePullSecret, err = n.getImagePullSecret(ctx); err != nil { - return err + // may meet permission error in the upgrade case when the new rbac is not upgraded, so ignore err in this release. + // TODO: need return err if fail to get secret in the next release. + klog.Warningf("failed to get image pull secret: %v", err) } for _, reconciler := range reconcilers {