nodeclaim

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNodeClaimStatus

func CheckNodeClaimStatus(ctx context.Context, nodeClaimObj *v1beta1.NodeClaim, kubeClient client.Client) error

CheckNodeClaimStatus checks the status of the nodeClaim. If the nodeClaim is not ready, then it will wait for the nodeClaim to be ready. If the nodeClaim is not ready after the timeout, then it will return an error. if the nodeClaim is ready, then it will return nil.

func CheckNodeClass

func CheckNodeClass(ctx context.Context, kClient client.Client) error

CheckNodeClass checks if Karpenter NodeClass is available. If not, the controller will create it automatically. This is only applicable when Karpenter feature flag is enabled.

func CreateKarpenterNodeClass

func CreateKarpenterNodeClass(ctx context.Context, kubeClient client.Client) error

CreateKarpenterNodeClass creates a nodeClass object for Karpenter.

func CreateNodeClaim

func CreateNodeClaim(ctx context.Context, nodeClaimObj *v1beta1.NodeClaim, kubeClient client.Client) error

CreateNodeClaim creates a nodeClaim object.

func GenerateAKSNodeClassManifest

func GenerateAKSNodeClassManifest(ctx context.Context) *azurev1alpha2.AKSNodeClass

func GenerateEC2NodeClassManifest

func GenerateEC2NodeClassManifest(ctx context.Context) *awsv1beta1.EC2NodeClass

func GenerateNodeClaimManifest

func GenerateNodeClaimManifest(ctx context.Context, storageRequirement string, obj interface{}) *v1beta1.NodeClaim

GenerateNodeClaimManifest generates a nodeClaim object from the given workspace or RAGEngine.

func GenerateNodeClaimName

func GenerateNodeClaimName(obj interface{}) string

GenerateNodeClaimName generates a nodeClaim name from the given workspace or RAGEngine.

func IsNodeClassAvailable

func IsNodeClassAvailable(ctx context.Context, cloudName string, kubeClient client.Client) bool

func ListNodeClaim

func ListNodeClaim(ctx context.Context, obj interface{}, kubeClient client.Client) (*v1beta1.NodeClaimList, error)

ListNodeClaim lists all nodeClaim objects in the cluster that are created by the given workspace or RAGEngine.

func WaitForPendingNodeClaims

func WaitForPendingNodeClaims(ctx context.Context, obj interface{}, kubeClient client.Client) error

WaitForPendingNodeClaims checks if there are any nodeClaims in provisioning condition. If so, wait until they are ready.

Types

This section is empty.

Jump to

Keyboard shortcuts

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