From 28b92e747dee315797a7c3a70ebe5231e9581a37 Mon Sep 17 00:00:00 2001 From: Fulton Byrne Date: Mon, 26 Sep 2022 16:46:22 -0400 Subject: [PATCH] skip instances on validation error if an instance is already being deleted/abandoned/not a member just continue --- cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go b/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go index b2902d28a193..95663c785731 100644 --- a/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go +++ b/cluster-autoscaler/cloudprovider/gce/autoscaling_gce_client.go @@ -253,7 +253,8 @@ func (client *autoscalingGceClientV1) waitForOp(operation *gce.Operation, projec func (client *autoscalingGceClientV1) DeleteInstances(migRef GceRef, instances []GceRef) error { registerRequest("instance_group_managers", "delete_instances") req := gce.InstanceGroupManagersDeleteInstancesRequest{ - Instances: []string{}, + Instances: []string{}, + SkipInstancesOnValidationError: true, } for _, i := range instances { req.Instances = append(req.Instances, GenerateInstanceUrl(i))