cloudprovider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Labels that can be selected on and are propagated to the node
	InstanceSizeLabelKey   = v1alpha1.Group + "/instance-size"
	InstanceFamilyLabelKey = v1alpha1.Group + "/instance-family"
	InstanceMemoryLabelKey = v1alpha1.Group + "/instance-memory"
	InstanceCPULabelKey    = v1alpha1.Group + "/instance-cpu"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

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

func NewCloudProvider

func NewCloudProvider(ctx context.Context, kubeClient client.Client, machineProvider machine.Provider, machineDeploymentProvider machinedeployment.Provider) *CloudProvider

func (*CloudProvider) Create

func (*CloudProvider) Delete

func (c *CloudProvider) Delete(ctx context.Context, nodeClaim *karpv1beta1.NodeClaim) error

func (*CloudProvider) Get

func (c *CloudProvider) Get(ctx context.Context, providerID string) (*karpv1beta1.NodeClaim, error)

Get returns a NodeClaim for the Machine object with the supplied provider ID, or nil if not found.

func (*CloudProvider) GetInstanceTypes

func (c *CloudProvider) GetInstanceTypes(ctx context.Context, nodePool *karpv1beta1.NodePool) ([]*cloudprovider.InstanceType, error)

GetInstanceTypes enumerates the known Cluster API scalable resources to generate the list of possible instance types.

func (*CloudProvider) GetSupportedNodeClasses

func (c *CloudProvider) GetSupportedNodeClasses() []schema.GroupVersionKind

func (*CloudProvider) IsDrifted

Return nothing since there's no cloud provider drift.

func (*CloudProvider) List

func (*CloudProvider) Name

func (c *CloudProvider) Name() string

type ClusterAPIInstanceType

type ClusterAPIInstanceType struct {
	cloudprovider.InstanceType

	MachineDeploymentName      string
	MachineDeploymentNamespace string
}

Jump to

Keyboard shortcuts

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