mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
operators: ignore node deletion errors on absence (#3113)
* operators: ignore node deletion errors on absence
This commit is contained in:
parent
71fe73a076
commit
902b7f49a8
3 changed files with 20 additions and 2 deletions
|
@ -139,7 +139,8 @@ 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),
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
|
@ -147,3 +148,7 @@ func (c *Client) DeleteNode(ctx context.Context, providerID string) error {
|
|||
}
|
||||
return op.Wait(ctx)
|
||||
}
|
||||
|
||||
func toPtr[T any](v T) *T {
|
||||
return &v
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue