operator

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: Apache-2.0, Apache-2.0 Imports: 36 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

	ImageProvider          *imagefamily.Provider
	ImageResolver          imagefamily.Resolver
	LaunchTemplateProvider *launchtemplate.Provider
	PricingProvider        *pricing.Provider
	InstanceTypesProvider  instancetype.Provider
	InstanceProvider       *instance.DefaultProvider
	LoadBalancerProvider   *loadbalancer.Provider
}

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