launchtemplate

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: 32 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, instanceProfileProvider instanceprofile.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 *v1beta1.EC2NodeClass) error

func (*DefaultProvider) EnsureAll added in v0.36.0

func (p *DefaultProvider) EnsureAll(ctx context.Context, nodeClass *v1beta1.EC2NodeClass, nodeClaim *corev1beta1.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, *v1beta1.EC2NodeClass, *corev1beta1.NodeClaim,
		[]*cloudprovider.InstanceType, string, map[string]string) ([]*LaunchTemplate, error)
	DeleteAll(context.Context, *v1beta1.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