Documentation
¶
Index ¶
- func LaunchTemplateName(options *amifamily.LaunchTemplate) string
- type DefaultProvider
- func (p *DefaultProvider) DeleteAll(ctx context.Context, nodeClass *v1beta1.EC2NodeClass) error
- func (p *DefaultProvider) EnsureAll(ctx context.Context, nodeClass *v1beta1.EC2NodeClass, ...) ([]*LaunchTemplate, error)
- func (p *DefaultProvider) InvalidateCache(ctx context.Context, ltName string, ltID string)
- func (p *DefaultProvider) ResolveClusterCIDR(ctx context.Context) error
- type LaunchTemplate
- type Provider
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 *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
}
Click to show internal directories.
Click to hide internal directories.