Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureTerminated ¶
func EnsureTerminated(ctx context.Context, c client.Client, nodeClaim *v1.NodeClaim, cloudProvider cloudprovider.CloudProvider) (terminated bool, err error)
EnsureTerminated is a helper function that takes a v1.NodeClaim and calls cloudProvider.Delete() if status condition on nodeClaim is not terminating. If it is terminating then it will call cloudProvider.Get() to check if the instance is terminated or not. It will return an error and a boolean that indicates if the instance is terminated or not. We simply return conflict or a NotFound error if we encounter it while updating the status on nodeClaim.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.