operator

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0, Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAZConfig

func GetAZConfig() (*auth.Config, error)

func WaitForCRDs added in v1.4.0

func WaitForCRDs(ctx context.Context, timeout time.Duration, config *rest.Config, log logr.Logger) error

WaitForCRDs waits for the required CRDs to be available with a timeout

Types

type Operator

type Operator struct {
	*operator.Operator

	// InClusterKubernetesInterface is a Kubernetes client that can be used to talk to the APIServer
	// of the cluster where the Karpenter pod is running. This is usually the same as operator.KubernetesInterface,
	// but may be different if Karpenter is running in a different cluster than the one it manages.
	InClusterKubernetesInterface kubernetes.Interface

	UnavailableOfferingsCache *azurecache.UnavailableOfferings

	KubernetesVersionProvider kubernetesversion.KubernetesVersionProvider
	ImageProvider             imagefamily.NodeImageProvider
	ImageResolver             imagefamily.Resolver
	LaunchTemplateProvider    *launchtemplate.Provider
	PricingProvider           *pricing.Provider
	InstanceTypesProvider     instancetype.Provider
	VMInstanceProvider        *instance.DefaultVMProvider
	AKSMachineProvider        *instance.DefaultAKSMachineProvider
	LoadBalancerProvider      *loadbalancer.Provider
	AZClient                  *instance.AZClient
}

func NewOperator

func NewOperator(ctx context.Context, operator *operator.Operator) (context.Context, *Operator)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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