instance

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateKubeletForCreateNode added in v0.3.0

func ValidateKubeletForCreateNode(nodeClass *v1alpha1.CCENodeClass) error

Types

type DefaultProvider

type DefaultProvider struct {
	// contains filtered or unexported fields
}

func (*DefaultProvider) Create

func (p *DefaultProvider) Create(ctx context.Context, nodeClass *v1alpha1.CCENodeClass, nodeClaim *karpv1.NodeClaim, instanceTypes []*cloudprovider.InstanceType) (*Instance, error)

func (*DefaultProvider) Delete

func (p *DefaultProvider) Delete(ctx context.Context, providerID string) error

func (*DefaultProvider) Get

func (p *DefaultProvider) Get(ctx context.Context, providerID string) (*Instance, error)

func (*DefaultProvider) List

func (p *DefaultProvider) List(ctx context.Context) ([]*Instance, error)

type Instance

type Instance struct {
	// NodeID is the CCE node UID.
	NodeID string
	// ServerID is the underlying ECS server UUID returned by CCE.
	ServerID string
	// Flavor is the ECS flavor used to create the node.
	Flavor string
	// Zone is the availability zone of the node.
	Zone string
	// SubnetID is the SubnetID of the node.
	SubnetID string
}

type Provider

func NewDefaultProvider

func NewDefaultProvider(clusterID string, cceapi sdk.CCEAPI, subnetProvider subnet.Provider, offeringAvailabilityCache *utils.OfferingAvailabilityCache) Provider

Jump to

Keyboard shortcuts

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