Documentation
¶
Index ¶
- func ValidateKubeletForCreateNode(nodeClass *v1alpha1.CCENodeClass) error
- type DefaultProvider
- func (p *DefaultProvider) Create(ctx context.Context, nodeClass *v1alpha1.CCENodeClass, ...) (*Instance, error)
- func (p *DefaultProvider) Delete(ctx context.Context, providerID string) error
- func (p *DefaultProvider) Get(ctx context.Context, providerID string) (*Instance, error)
- func (p *DefaultProvider) List(ctx context.Context) ([]*Instance, error)
- type Instance
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateKubeletForCreateNode ¶ added in v0.3.0
func ValidateKubeletForCreateNode(nodeClass *v1alpha1.CCENodeClass) error
Types ¶
type DefaultProvider ¶
type DefaultProvider struct {
// contains filtered or unexported fields
}
func (*DefaultProvider) Create ¶
func (p *DefaultProvider) Create(ctx context.Context, nodeClass *v1alpha1.CCENodeClass, nodeClaim *karpv1.NodeClaim, instanceTypes []*cloudprovider.InstanceType) (*Instance, error)
func (*DefaultProvider) Delete ¶
func (p *DefaultProvider) Delete(ctx context.Context, providerID string) error
type Instance ¶
type Instance struct {
// NodeID is the CCE node UID.
NodeID string
// ServerID is the underlying ECS server UUID returned by CCE.
ServerID string
// Flavor is the ECS flavor used to create the node.
Flavor string
// Zone is the availability zone of the node.
Zone string
// SubnetID is the SubnetID of the node.
SubnetID string
}
type Provider ¶
type Provider interface {
Create(context.Context, *v1alpha1.CCENodeClass, *karpv1.NodeClaim, []*cloudprovider.InstanceType) (*Instance, error)
Get(context.Context, string) (*Instance, error)
List(context.Context) ([]*Instance, error)
Delete(context.Context, string) error
}
func NewDefaultProvider ¶
Click to show internal directories.
Click to hide internal directories.