Documentation ¶
Index ¶
- Constants
- type CloudProvider
- func (c *CloudProvider) Create(ctx context.Context, nodeClaim *karpv1beta1.NodeClaim) (*karpv1beta1.NodeClaim, error)
- func (c *CloudProvider) Delete(ctx context.Context, nodeClaim *karpv1beta1.NodeClaim) error
- func (c *CloudProvider) Get(ctx context.Context, providerID string) (*karpv1beta1.NodeClaim, error)
- func (c *CloudProvider) GetInstanceTypes(ctx context.Context, nodePool *karpv1beta1.NodePool) ([]*cloudprovider.InstanceType, error)
- func (c *CloudProvider) GetSupportedNodeClasses() []schema.GroupVersionKind
- func (c *CloudProvider) IsDrifted(ctx context.Context, nodeClaim *karpv1beta1.NodeClaim) (cloudprovider.DriftReason, error)
- func (c *CloudProvider) List(ctx context.Context) ([]*karpv1beta1.NodeClaim, error)
- func (c *CloudProvider) Name() string
- type ClusterAPIInstanceType
Constants ¶
View Source
const ( // Labels that can be selected on and are propagated to the node InstanceSizeLabelKey = v1alpha1.Group + "/instance-size" InstanceFamilyLabelKey = v1alpha1.Group + "/instance-family" InstanceMemoryLabelKey = v1alpha1.Group + "/instance-memory" InstanceCPULabelKey = v1alpha1.Group + "/instance-cpu" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudProvider ¶
type CloudProvider struct {
// contains filtered or unexported fields
}
func NewCloudProvider ¶
func NewCloudProvider(ctx context.Context, kubeClient client.Client, machineProvider machine.Provider, machineDeploymentProvider machinedeployment.Provider) *CloudProvider
func (*CloudProvider) Create ¶
func (c *CloudProvider) Create(ctx context.Context, nodeClaim *karpv1beta1.NodeClaim) (*karpv1beta1.NodeClaim, error)
func (*CloudProvider) Delete ¶
func (c *CloudProvider) Delete(ctx context.Context, nodeClaim *karpv1beta1.NodeClaim) error
func (*CloudProvider) Get ¶
func (c *CloudProvider) Get(ctx context.Context, providerID string) (*karpv1beta1.NodeClaim, error)
Get returns a NodeClaim for the Machine object with the supplied provider ID, or nil if not found.
func (*CloudProvider) GetInstanceTypes ¶
func (c *CloudProvider) GetInstanceTypes(ctx context.Context, nodePool *karpv1beta1.NodePool) ([]*cloudprovider.InstanceType, error)
GetInstanceTypes enumerates the known Cluster API scalable resources to generate the list of possible instance types.
func (*CloudProvider) GetSupportedNodeClasses ¶
func (c *CloudProvider) GetSupportedNodeClasses() []schema.GroupVersionKind
func (*CloudProvider) IsDrifted ¶
func (c *CloudProvider) IsDrifted(ctx context.Context, nodeClaim *karpv1beta1.NodeClaim) (cloudprovider.DriftReason, error)
Return nothing since there's no cloud provider drift.
func (*CloudProvider) List ¶
func (c *CloudProvider) List(ctx context.Context) ([]*karpv1beta1.NodeClaim, error)
func (*CloudProvider) Name ¶
func (c *CloudProvider) Name() string
type ClusterAPIInstanceType ¶
type ClusterAPIInstanceType struct { cloudprovider.InstanceType MachineDeploymentName string MachineDeploymentNamespace string }
Click to show internal directories.
Click to hide internal directories.