Documentation ¶
Index ¶
- func CheckNodeClaimStatus(ctx context.Context, nodeClaimObj *v1beta1.NodeClaim, kubeClient client.Client) error
- func CheckNodeClass(ctx context.Context, kClient client.Client) error
- func CreateKarpenterNodeClass(ctx context.Context, kubeClient client.Client) error
- func CreateNodeClaim(ctx context.Context, nodeClaimObj *v1beta1.NodeClaim, kubeClient client.Client) error
- func GenerateAKSNodeClassManifest(ctx context.Context) *azurev1alpha2.AKSNodeClass
- func GenerateEC2NodeClassManifest(ctx context.Context) *awsv1beta1.EC2NodeClass
- func GenerateNodeClaimManifest(ctx context.Context, storageRequirement string, obj interface{}) *v1beta1.NodeClaim
- func GenerateNodeClaimName(obj interface{}) string
- func IsNodeClassAvailable(ctx context.Context, cloudName string, kubeClient client.Client) bool
- func ListNodeClaim(ctx context.Context, obj interface{}, kubeClient client.Client) (*v1beta1.NodeClaimList, error)
- func WaitForPendingNodeClaims(ctx context.Context, obj interface{}, kubeClient client.Client) error
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 ¶
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 ¶
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 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.
Types ¶
This section is empty.