operator

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 45 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEC2Connectivity added in v0.36.0

func CheckEC2Connectivity(ctx context.Context, api sdk.EC2API) error

CheckEC2Connectivity makes a dry-run call to DescribeInstanceTypes. If it fails, we provide an early indicator that we are having issues connecting to the EC2 API.

func GetCABundle added in v0.36.0

func GetCABundle(ctx context.Context, restConfig *rest.Config) (*string, error)

func KubeDNSIP added in v0.36.0

func KubeDNSIP(ctx context.Context, kubernetesInterface kubernetes.Interface) (net.IP, error)

func ResolveClusterEndpoint

func ResolveClusterEndpoint(ctx context.Context, eksAPI sdk.EKSAPI) (string, error)

func WithUserAgent added in v0.36.0

func WithUserAgent(cfg aws.Config) aws.Config

WithUserAgent adds a karpenter specific user-agent string to AWS session

Types

type Operator

type Operator struct {
	*operator.Operator
	Config                    aws.Config
	UnavailableOfferingsCache *awscache.UnavailableOfferings
	SSMCache                  *cache.Cache
	SubnetProvider            subnet.Provider
	SecurityGroupProvider     securitygroup.Provider
	InstanceProfileProvider   instanceprofile.Provider
	AMIProvider               amifamily.Provider
	AMIResolver               amifamily.Resolver
	LaunchTemplateProvider    launchtemplate.Provider
	PricingProvider           pricing.Provider
	VersionProvider           *version.DefaultProvider
	InstanceTypesProvider     *instancetype.DefaultProvider
	InstanceProvider          instance.Provider
	SSMProvider               ssmp.Provider
}

Operator is injected into the AWS CloudProvider's factories

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