Skip to content

Commit

Permalink
fix: add deletiontimestamp check for kwok termination (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran authored Jun 14, 2024
1 parent 37db06f commit b350b58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kwok/cloudprovider/cloudprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ func (c CloudProvider) Get(ctx context.Context, providerID string) (*v1beta1.Nod
}
return nil, fmt.Errorf("finding node, %w", err)
}
if node.DeletionTimestamp != nil {
return nil, cloudprovider.NewNodeClaimNotFoundError(fmt.Errorf("nodeclaim not found"))
}
return c.toNodeClaim(node)
}

Expand Down

0 comments on commit b350b58

Please sign in to comment.