Documentation
¶
Index ¶
- func InstanceTypes(total int) []cloudprovider.InstanceType
- func InstanceTypesAssorted() []cloudprovider.InstanceType
- type CloudProvider
- func (c *CloudProvider) Create(ctx context.Context, nodeRequest *cloudprovider.NodeRequest) (*v1.Node, error)
- func (c *CloudProvider) Default(context.Context, *v1alpha5.Provisioner)
- func (c *CloudProvider) Delete(context.Context, *v1.Node) error
- func (c *CloudProvider) GetInstanceTypes(_ context.Context) ([]cloudprovider.InstanceType, error)
- func (c *CloudProvider) GetRequirements(ctx context.Context, provider *v1alpha5.Provider) (v1alpha5.Requirements, error)
- func (c *CloudProvider) Name() string
- func (c *CloudProvider) Validate(context.Context, *v1alpha5.Provisioner) *apis.FieldError
- type CreateCallArgs
- type InstanceType
- func (i *InstanceType) Architecture() string
- func (i *InstanceType) Name() string
- func (i *InstanceType) Offerings() []cloudprovider.Offering
- func (i *InstanceType) OperatingSystems() sets.String
- func (i *InstanceType) Overhead() v1.ResourceList
- func (i *InstanceType) Price() float64
- func (i *InstanceType) Resources() v1.ResourceList
- type InstanceTypeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstanceTypes ¶ added in v0.5.3
func InstanceTypes(total int) []cloudprovider.InstanceType
InstanceTypes creates instance types with incrementing resources 2Gi of RAM and 10 pods for every 1vcpu i.e. 1vcpu, 2Gi mem, 10 pods
2vcpu, 4Gi mem, 20 pods 3vcpu, 6Gi mem, 30 pods
func InstanceTypesAssorted ¶ added in v0.8.0
func InstanceTypesAssorted() []cloudprovider.InstanceType
InstanceTypesAssorted create many unique instance types with varying CPU/memory/architecture/OS/zone/capacity type.
Types ¶
type CloudProvider ¶
type CloudProvider struct { InstanceTypes []cloudprovider.InstanceType CreateCalls []*cloudprovider.NodeRequest // contains filtered or unexported fields }
func (*CloudProvider) Create ¶
func (c *CloudProvider) Create(ctx context.Context, nodeRequest *cloudprovider.NodeRequest) (*v1.Node, error)
func (*CloudProvider) Default ¶
func (c *CloudProvider) Default(context.Context, *v1alpha5.Provisioner)
func (*CloudProvider) GetInstanceTypes ¶
func (c *CloudProvider) GetInstanceTypes(_ context.Context) ([]cloudprovider.InstanceType, error)
func (*CloudProvider) GetRequirements ¶ added in v0.9.1
func (c *CloudProvider) GetRequirements(ctx context.Context, provider *v1alpha5.Provider) (v1alpha5.Requirements, error)
func (*CloudProvider) Name ¶ added in v0.5.3
func (c *CloudProvider) Name() string
Name returns the CloudProvider implementation name.
func (*CloudProvider) Validate ¶
func (c *CloudProvider) Validate(context.Context, *v1alpha5.Provisioner) *apis.FieldError
type CreateCallArgs ¶ added in v0.7.3
type CreateCallArgs struct { Constraints *v1alpha5.Constraints InstanceTypes []cloudprovider.InstanceType Quantity int }
type InstanceType ¶
type InstanceType struct {
// contains filtered or unexported fields
}
func NewInstanceType ¶
func NewInstanceType(options InstanceTypeOptions) *InstanceType
func (*InstanceType) Architecture ¶
func (i *InstanceType) Architecture() string
func (*InstanceType) Name ¶
func (i *InstanceType) Name() string
func (*InstanceType) Offerings ¶
func (i *InstanceType) Offerings() []cloudprovider.Offering
func (*InstanceType) OperatingSystems ¶ added in v0.5.2
func (i *InstanceType) OperatingSystems() sets.String
func (*InstanceType) Overhead ¶
func (i *InstanceType) Overhead() v1.ResourceList
func (*InstanceType) Price ¶ added in v0.7.3
func (i *InstanceType) Price() float64
func (*InstanceType) Resources ¶ added in v0.7.3
func (i *InstanceType) Resources() v1.ResourceList
type InstanceTypeOptions ¶
type InstanceTypeOptions struct { Name string Offerings []cloudprovider.Offering Architecture string OperatingSystems sets.String Overhead v1.ResourceList Resources v1.ResourceList Price float64 }
Click to show internal directories.
Click to hide internal directories.