operator

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 44 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 ec2iface.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 eksiface.EKSAPI) (string, error)

func SetDurationAndExpiry added in v0.36.0

func SetDurationAndExpiry(ctx context.Context, provider *stscreds.AssumeRoleProvider)

func WithUserAgent added in v0.36.0

func WithUserAgent(sess *session.Session) *session.Session

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

Types

type Operator

type Operator struct {
	*operator.Operator

	Session                   *session.Session
	UnavailableOfferingsCache *awscache.UnavailableOfferings
	EC2API                    ec2iface.EC2API
	SubnetProvider            subnet.Provider
	SecurityGroupProvider     securitygroup.Provider
	InstanceProfileProvider   instanceprofile.Provider
	AMIProvider               amifamily.Provider
	AMIResolver               *amifamily.Resolver
	LaunchTemplateProvider    launchtemplate.Provider
	PricingProvider           pricing.Provider
	VersionProvider           version.Provider
	InstanceTypesProvider     instancetype.Provider
	InstanceProvider          instance.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