Documentation
¶
Index ¶
- Constants
- Variables
- func NewInstanceType(ctx context.Context, info *ec2.InstanceTypeInfo, ...) *cloudprovider.InstanceType
- type CloudProvider
- func (c *CloudProvider) Create(ctx context.Context, machine *v1alpha5.Machine) (*v1alpha5.Machine, error)
- func (c *CloudProvider) Delete(ctx context.Context, machine *v1alpha5.Machine) error
- func (c *CloudProvider) Get(ctx context.Context, providerID string) (*v1alpha5.Machine, error)
- func (c *CloudProvider) GetInstanceTypes(ctx context.Context, provisioner *v1alpha5.Provisioner) ([]*cloudprovider.InstanceType, error)
- func (c *CloudProvider) IsMachineDrifted(ctx context.Context, machine *v1alpha5.Machine) (bool, error)
- func (c *CloudProvider) Link(ctx context.Context, machine *v1alpha5.Machine) error
- func (c *CloudProvider) List(ctx context.Context) ([]*v1alpha5.Machine, error)
- func (c *CloudProvider) LivenessProbe(req *http.Request) error
- func (c *CloudProvider) Name() string
- type InstanceProvider
- func (p *InstanceProvider) Create(ctx context.Context, nodeTemplate *v1alpha1.AWSNodeTemplate, ...) (*ec2.Instance, error)
- func (p *InstanceProvider) Delete(ctx context.Context, id string) error
- func (p *InstanceProvider) Get(ctx context.Context, id string) (*ec2.Instance, error)
- func (p *InstanceProvider) Link(ctx context.Context, id string) error
- func (p *InstanceProvider) List(ctx context.Context) ([]*ec2.Instance, error)
- func (p *InstanceProvider) Update(ctx context.Context, machine *v1alpha5.Machine) (*ec2.Instance, error)
- type InstanceTypeProvider
- type VPCLimits
Constants ¶
View Source
const ( InstanceTypesCacheKey = "types" InstanceTypeZonesCacheKeyPrefix = "zones:" )
View Source
const (
// MaxInstanceTypes defines the number of instance type options to pass to CreateFleet
MaxInstanceTypes = 60
)
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 ¶ added in v0.19.0
func NewInstanceType(ctx context.Context, info *ec2.InstanceTypeInfo, kc *v1alpha5.KubeletConfiguration, region string, nodeTemplate *v1alpha1.AWSNodeTemplate, offerings cloudprovider.Offerings) *cloudprovider.InstanceType
Types ¶
type CloudProvider ¶
type CloudProvider struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.19.0
func New(ctx awscontext.Context) *CloudProvider
func (*CloudProvider) Create ¶
func (c *CloudProvider) Create(ctx context.Context, machine *v1alpha5.Machine) (*v1alpha5.Machine, error)
Create a machine given the constraints.
func (*CloudProvider) GetInstanceTypes ¶
func (c *CloudProvider) GetInstanceTypes(ctx context.Context, provisioner *v1alpha5.Provisioner) ([]*cloudprovider.InstanceType, error)
GetInstanceTypes returns all available InstanceTypes
func (*CloudProvider) IsMachineDrifted ¶ added in v0.21.0
func (*CloudProvider) Link ¶ added in v0.26.0
Link adds a tag to the cloudprovider machine to tell the cloudprovider that it's now owned by a Machine
func (*CloudProvider) LivenessProbe ¶ added in v0.19.0
func (c *CloudProvider) LivenessProbe(req *http.Request) error
func (*CloudProvider) Name ¶ added in v0.5.3
func (c *CloudProvider) Name() string
Name returns the CloudProvider implementation name.
type InstanceProvider ¶ added in v0.19.0
type InstanceProvider struct {
// contains filtered or unexported fields
}
func NewInstanceProvider ¶ added in v0.19.0
func NewInstanceProvider(ctx context.Context, region string, ec2api ec2iface.EC2API, unavailableOfferings *cache.UnavailableOfferings, instanceTypeProvider *InstanceTypeProvider, subnetProvider *subnet.Provider, launchTemplateProvider *launchtemplate.Provider) *InstanceProvider
func (*InstanceProvider) Create ¶ added in v0.19.0
func (p *InstanceProvider) Create(ctx context.Context, nodeTemplate *v1alpha1.AWSNodeTemplate, machine *v1alpha5.Machine, instanceTypes []*cloudprovider.InstanceType) (*ec2.Instance, error)
func (*InstanceProvider) Delete ¶ added in v0.22.0
func (p *InstanceProvider) Delete(ctx context.Context, id string) error
func (*InstanceProvider) Link ¶ added in v0.26.0
func (p *InstanceProvider) Link(ctx context.Context, id string) error
func (*InstanceProvider) Update ¶ added in v0.24.0
func (p *InstanceProvider) Update(ctx context.Context, machine *v1alpha5.Machine) (*ec2.Instance, error)
Update receives a machine and updates the EC2 instance with tags linking it to the machine Deprecated: This function can be removed when v1alpha6/v1beta1 migration has completed.
type InstanceTypeProvider ¶ added in v0.19.0
type InstanceTypeProvider struct {
// contains filtered or unexported fields
}
func NewInstanceTypeProvider ¶ added in v0.19.0
func (*InstanceTypeProvider) List ¶ added in v0.22.0
func (p *InstanceTypeProvider) List(ctx context.Context, kc *v1alpha5.KubeletConfiguration, nodeTemplate *v1alpha1.AWSNodeTemplate) ([]*cloudprovider.InstanceType, error)
func (*InstanceTypeProvider) LivenessProbe ¶ added in v0.19.0
func (p *InstanceTypeProvider) LivenessProbe(req *http.Request) error
Click to show internal directories.
Click to hide internal directories.