From abf6178309446faa4315d1e3f1f99059ad6aa989 Mon Sep 17 00:00:00 2001 From: zhuyi1159 <1159751291@qq.com> Date: Wed, 21 Aug 2024 14:14:47 +0800 Subject: [PATCH] rebase main branch --- controllers/extensions/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/extensions/utils.go b/controllers/extensions/utils.go index ec0db9df04b8..b4e7d432cde5 100644 --- a/controllers/extensions/utils.go +++ b/controllers/extensions/utils.go @@ -827,7 +827,7 @@ func getKubeBlocksDeploy(ctx context.Context, r *AddonReconciler) (*v1.Deploymen client.MatchingLabelsSelector{Selector: labelSelector}); err != nil { return nil, err } - if deploys.Items == nil || len(deploys.Items) == 0 { + if len(deploys.Items) == 0 { return nil, fmt.Errorf("there is no KubeBlocks deployment, please check your cluster") } if len(deploys.Items) > 1 {