Documentation
¶
Overview ¶
Package hivelocity implements the cloud controller manager. The interfaces are from: https://github.com/kubernetes/cloud-provider
Index ¶
- type HVInstancesV2
- func (i2 *HVInstancesV2) InstanceExists(ctx context.Context, node *corev1.Node) (bool, error)
- func (i2 *HVInstancesV2) InstanceMetadata(ctx context.Context, node *corev1.Node) (*cloudprovider.InstanceMetadata, error)
- func (i2 *HVInstancesV2) InstanceShutdown(ctx context.Context, node *corev1.Node) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HVInstancesV2 ¶
type HVInstancesV2 struct {
// contains filtered or unexported fields
}
HVInstancesV2 implements cloudprovider.InstanceV2.
func (*HVInstancesV2) InstanceExists ¶
InstanceExists returns true if the instance for the given node exists according to the cloud provider. Use the node.name or node.spec.providerID field to find the node in the cloud provider. Implements cloudprovider.InstancesV2.InstanceExists.
func (*HVInstancesV2) InstanceMetadata ¶
func (i2 *HVInstancesV2) InstanceMetadata( ctx context.Context, node *corev1.Node, ) (*cloudprovider.InstanceMetadata, error)
InstanceMetadata returns the instance's metadata. The values returned in InstanceMetadata are translated into specific fields and labels in the Node object on registration. Implementations should always check node.spec.providerID first when trying to discover the instance for a given node. In cases where node.spec.providerID is empty, implementations can use other properties of the node like its name, labels and annotations. Implements cloudprovider.InstancesV2.InstanceMetadata.
func (*HVInstancesV2) InstanceShutdown ¶
InstanceShutdown returns true if the instance is shutdown according to the cloud provider. Use the node.name or node.spec.providerID field to find the node in the cloud provider. Implements cloudprovider.InstancesV2.InstanceShutdown.