cloudprovider

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 27 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	NodeClassDrift cloudprovider.DriftReason = "NodeClassDrift"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

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

func New

func New(
	instanceTypeProvider instancetype.Provider,
	nodeProvider instance.Provider,
	recorder events.Recorder,
	kubeClient client.Client,
) *CloudProvider

func (*CloudProvider) Create

func (c *CloudProvider) Create(ctx context.Context, nodeClaim *karpv1.NodeClaim) (*karpv1.NodeClaim, error)

Create a NodeClaim given the constraints.

func (*CloudProvider) Delete

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

func (*CloudProvider) Get

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

func (*CloudProvider) GetInstanceTypes

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

GetInstanceTypes returns all available InstanceTypes

func (*CloudProvider) GetSupportedNodeClasses

func (c *CloudProvider) GetSupportedNodeClasses() []status.Object

func (*CloudProvider) IsDrifted

func (c *CloudProvider) IsDrifted(ctx context.Context, nodeClaim *karpv1.NodeClaim) (cloudprovider.DriftReason, error)

func (*CloudProvider) List

func (c *CloudProvider) List(ctx context.Context) ([]*karpv1.NodeClaim, error)

func (*CloudProvider) Name

func (c *CloudProvider) Name() string

Name returns the CloudProvider implementation name.

func (*CloudProvider) Reboot added in v0.1.8

Reboot reports unsupported in-place repair; Linode repair policies replace nodes.

func (*CloudProvider) RepairPolicies

func (c *CloudProvider) RepairPolicies() []cloudprovider.RepairPolicy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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