hivelocity

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package hivelocity implements the cloud controller manager. The interfaces are from: https://github.com/kubernetes/cloud-provider

Index

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

func (i2 *HVInstancesV2) InstanceExists(ctx context.Context, node *corev1.Node) (bool, error)

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

func (i2 *HVInstancesV2) InstanceShutdown(ctx context.Context, node *corev1.Node) (bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL