termination

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL