Documentation ¶
Index ¶
Constants ¶
View Source
const ( InstanceTypesCacheKey = "types" InstanceTypeZonesCacheKeyPrefix = "zones:" )
View Source
const (
MemoryAvailable = "memory.available"
)
Variables ¶
View Source
var (
InstanceTypeBandwidthMegabits = map[string]int64{}/* 615 elements not displayed */
)
View Source
var Limits = map[string]*VPCLimits{}/* 605 elements not displayed */
VPC Limits and flags for ENI and IPv4 Addresses
Functions ¶
func NewInstanceType ¶
func NewInstanceType(ctx context.Context, info *ec2.InstanceTypeInfo, kc *v1alpha5.KubeletConfiguration, region string, nodeTemplate *v1alpha1.AWSNodeTemplate, offerings cloudprovider.Offerings) *cloudprovider.InstanceType
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) GetInstanceTypes ¶
GetInstanceTypes retrieves all instance types from the ec2 DescribeInstanceTypes API using some opinionated filters
func (*Provider) List ¶
func (p *Provider) List(ctx context.Context, kc *v1alpha5.KubeletConfiguration, nodeTemplate *v1alpha1.AWSNodeTemplate) ([]*cloudprovider.InstanceType, error)
Click to show internal directories.
Click to hide internal directories.