launchtemplate

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchTemplateName added in v0.36.0

func LaunchTemplateName(options *amifamily.LaunchTemplate) string

Types

type DefaultProvider added in v0.36.0

type DefaultProvider struct {
	sync.Mutex

	KubeDNSIP       net.IP
	CABundle        *string
	ClusterEndpoint string
	ClusterCIDR     atomic.Pointer[string]
	// contains filtered or unexported fields
}

func NewDefaultProvider added in v0.36.0

func NewDefaultProvider(ctx context.Context, cache *cache.Cache, ec2api ec2iface.EC2API, eksapi eksiface.EKSAPI, amiFamily *amifamily.Resolver,
	securityGroupProvider securitygroup.Provider, subnetProvider subnet.Provider,
	caBundle *string, startAsync <-chan struct{}, kubeDNSIP net.IP, clusterEndpoint string) *DefaultProvider

func (*DefaultProvider) DeleteAll added in v0.36.0

func (p *DefaultProvider) DeleteAll(ctx context.Context, nodeClass *v1.EC2NodeClass) error

func (*DefaultProvider) EnsureAll added in v0.36.0

func (p *DefaultProvider) EnsureAll(ctx context.Context, nodeClass *v1.EC2NodeClass, nodeClaim *karpv1.NodeClaim,
	instanceTypes []*cloudprovider.InstanceType, capacityType string, tags map[string]string) ([]*LaunchTemplate, error)

func (*DefaultProvider) InvalidateCache added in v0.36.0

func (p *DefaultProvider) InvalidateCache(ctx context.Context, ltName string, ltID string)

InvalidateCache deletes a launch template from cache if it exists

func (*DefaultProvider) ResolveClusterCIDR added in v0.36.0

func (p *DefaultProvider) ResolveClusterCIDR(ctx context.Context) error

type LaunchTemplate

type LaunchTemplate struct {
	Name          string
	InstanceTypes []*cloudprovider.InstanceType
	ImageID       string
}

type Provider

type Provider interface {
	EnsureAll(context.Context, *v1.EC2NodeClass, *karpv1.NodeClaim,
		[]*cloudprovider.InstanceType, string, map[string]string) ([]*LaunchTemplate, error)
	DeleteAll(context.Context, *v1.EC2NodeClass) error
	InvalidateCache(context.Context, string, string)
	ResolveClusterCIDR(context.Context) error
}

Jump to

Keyboard shortcuts

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