vspherek8s

package
v0.0.0-...-7e0a285 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0, MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RegisteredProviderName is the name of the cloud provider registered with
	// Kubernetes.
	RegisteredProviderName string = "vsphere-with-k8s"

	// ProviderName is the name used for constructing Provider ID
	ProviderName string = "vsphere"
)
View Source
const (
	// AnnotationZone is the annotation key for the region
	AnnotationZone = "vsphere.provider.gardener.cloud/region"
	// AnnotationRegion is the annotation key for the zone
	AnnotationRegion = "vsphere.provider.gardener.cloud/zone"
)

Variables

This section is empty.

Functions

func GetVmopClient

func GetVmopClient(config *rest.Config) (client.Client, error)

GetVmopClient gets a vm-operator-api client This is separate from NewVMService so that a fake client can be injected for testing

func NewInstancesV2

func NewInstancesV2(supervisorNamespace string, kcfg *rest.Config) (cloudprovider.InstancesV2, error)

Types

type VSphereWithK8s

type VSphereWithK8s struct {
	// contains filtered or unexported fields
}

VSphereWithK8s is an implementation of cloud provider Interface for vsphere with kubernetes.

func (*VSphereWithK8s) Clusters

func (cp *VSphereWithK8s) Clusters() (cloudprovider.Clusters, bool)

Clusters returns a clusters interface. Also returns true if the interface is supported, false otherwise.

func (*VSphereWithK8s) HasClusterID

func (cp *VSphereWithK8s) HasClusterID() bool

HasClusterID returns true if a ClusterID is required and set/

func (*VSphereWithK8s) Initialize

func (cp *VSphereWithK8s) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})

Initialize initializes the vSphere with k8s cloud provider.

func (*VSphereWithK8s) Instances

func (cp *VSphereWithK8s) Instances() (cloudprovider.Instances, bool)

Instances returns an instances interface. Also returns true if the interface is supported, false otherwise.

func (*VSphereWithK8s) InstancesV2

func (cp *VSphereWithK8s) InstancesV2() (cloudprovider.InstancesV2, bool)

InstancesV2 returns an implementation of cloudprovider.InstancesV2.

func (*VSphereWithK8s) LoadBalancer

func (cp *VSphereWithK8s) LoadBalancer() (cloudprovider.LoadBalancer, bool)

LoadBalancer returns a balancer interface. Also returns true if the interface is supported, false otherwise.

func (*VSphereWithK8s) ProviderName

func (cp *VSphereWithK8s) ProviderName() string

ProviderName returns the cloud provider ID. Note: Returns 'vsphere' instead of 'vsphere-with-k8s' since CAPV expects the ProviderID to be in form 'vsphere://***' https://github.com/kubernetes/cloud-provider-vsphere/issues/447

func (*VSphereWithK8s) Routes

func (cp *VSphereWithK8s) Routes() (cloudprovider.Routes, bool)

Routes returns a routes interface along with whether the interface is supported.

func (*VSphereWithK8s) Zones

func (cp *VSphereWithK8s) Zones() (cloudprovider.Zones, bool)

Zones returns a zones interface. Also returns true if the interface is supported, false otherwise.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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