Skip to content

Commit

Permalink
fixup! operators: ignore node deletion errors on absence
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed May 21, 2024
1 parent 26c44ab commit 5949a5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@ func isInstanceNotFoundError(err error) bool {
return false
}
return strings.Contains(err.Error(), "Instance Id not found")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (c *Client) DeleteNode(ctx context.Context, providerID string) error {
Project: instanceGroupProject,
Zone: instanceGroupZone,
InstanceGroupManagersDeleteInstancesRequestResource: &computepb.InstanceGroupManagersDeleteInstancesRequest{
Instances: []string{instanceID},
Instances: []string{instanceID},
SkipInstancesOnValidationError: toPtr(true),
},
})
Expand Down

0 comments on commit 5949a5d

Please sign in to comment.