nodeclass

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: 35 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 (
	ConditionReasonTagValidationFailed               = "TagValidationFailed"
	ConditionReasonLKEK8sVersionControlPlaneMismatch = "LKEK8sVersionControlPlaneMismatch"
	ConditionReasonUnsupportedInstanceFields         = "UnsupportedInstanceFields"
	ConditionReasonUnsupportedLKEFields              = "UnsupportedLKEFields"
)

Variables

View Source
var ValidationConditionMessages = map[string]string{
	ConditionReasonTagValidationFailed:               "LinodeNodeClass tags violate provider-managed key or 50-character length requirements",
	ConditionReasonLKEK8sVersionControlPlaneMismatch: "lkeK8sVersion must match the LKE cluster control plane version",
	ConditionReasonUnsupportedInstanceFields:         "LinodeNodeClass sets instance-only fields that are not supported in LKE mode",
	ConditionReasonUnsupportedLKEFields:              "LinodeNodeClass sets LKE-only fields that are not supported in instance mode",
}

Functions

func LKEValidationFailedEvent added in v0.1.9

func LKEValidationFailedEvent(nodeClass *v1beta1.LinodeNodeClass, reason, message string) events.Event

func WaitingOnNodeClaimTerminationEvent

func WaitingOnNodeClaimTerminationEvent(nodeClass *v1beta1.LinodeNodeClass, names []string) events.Event

Types

type Controller

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

func NewController

func NewController(
	kubeClient client.Client,
	cloudProvider cloudprovider.CloudProvider,
	recorder events.Recorder,
	region string,
	clusterID int,
	instanceTypeProvider instancetype.Provider,
	linodeClient sdk.LinodeAPI,
	validationCache *cache.Cache,
	disableDryRun bool,
) *Controller

func (*Controller) Name

func (c *Controller) Name() string

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, nodeClass *v1beta1.LinodeNodeClass) (reconcile.Result, error)

func (*Controller) Register

func (c *Controller) Register(_ context.Context, m manager.Manager) error

type Validation

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

func NewValidationReconciler

func NewValidationReconciler(
	kubeClient client.Client,
	cloudProvider cloudprovider.CloudProvider,
	recorder events.Recorder,
	clusterID int,
	linodeClient sdk.LinodeAPI,
	instanceTypeProvider instancetype.Provider,
	cache *gocache.Cache,
	dryRunDisabled bool,
) *Validation

func (*Validation) Reconcile

func (v *Validation) Reconcile(ctx context.Context, nodeClass *v1beta1.LinodeNodeClass) (reconcile.Result, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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