Help us shape the future of Go! Take the 2026 Go Developer Survey

nodeclass

package
v0.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConditionReasonTagValidationFailed               = "TagValidationFailed"
	ConditionReasonLKEK8sVersionUnsupported          = "LKEK8sVersionUnsupported"
	ConditionReasonLKEK8sVersionControlPlaneMismatch = "LKEK8sVersionControlPlaneMismatch"
)

Variables

View Source
var ValidationConditionMessages = map[string]string{
	ConditionReasonTagValidationFailed:               "LinodeNodeClass spec.tags contains restricted provider-managed tags",
	ConditionReasonLKEK8sVersionUnsupported:          "lkeK8sVersion is only supported for LKE Enterprise clusters",
	ConditionReasonLKEK8sVersionControlPlaneMismatch: "lkeK8sVersion requires the LKE cluster control plane to already be on the same version",
}

Functions

func LKEK8sVersionValidationFailedEvent added in v0.1.5

func LKEK8sVersionValidationFailedEvent(nodeClass *v1alpha1.LinodeNodeClass, reason, message string) events.Event

func WaitingOnNodeClaimTerminationEvent

func WaitingOnNodeClaimTerminationEvent(nodeClass *v1alpha1.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 *v1alpha1.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 *v1alpha1.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