From 5c4a0a63a541df7368f7891d57a13171885dd18f Mon Sep 17 00:00:00 2001 From: mcll Date: Wed, 31 Jul 2024 20:23:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96gke=E6=89=A9=E5=AE=B9?= =?UTF-8?q?=E6=97=B6=E8=8A=82=E7=82=B9=E7=94=B3=E8=AF=B7=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../internal/cloudprovider/google/tasks/updateDesiredNodes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bcs-services/bcs-cluster-manager/internal/cloudprovider/google/tasks/updateDesiredNodes.go b/bcs-services/bcs-cluster-manager/internal/cloudprovider/google/tasks/updateDesiredNodes.go index 45b704440a..898a36729d 100644 --- a/bcs-services/bcs-cluster-manager/internal/cloudprovider/google/tasks/updateDesiredNodes.go +++ b/bcs-services/bcs-cluster-manager/internal/cloudprovider/google/tasks/updateDesiredNodes.go @@ -352,6 +352,10 @@ func checkInstance(client *api.ComputeServiceClient, ids []string) ([]string, [] successIns = running failureIns = failed + + if len(failureIns) > 0 { + return successIns, failureIns, fmt.Errorf("failed to get all instance ip") + } } return successIns, failureIns, nil