Documentation ¶
Index ¶
- Constants
- func GetVmopClient(config *rest.Config) (client.Client, error)
- func NewInstancesV2(supervisorNamespace string, kcfg *rest.Config) (cloudprovider.InstancesV2, error)
- type VSphereWithK8s
- func (cp *VSphereWithK8s) Clusters() (cloudprovider.Clusters, bool)
- func (cp *VSphereWithK8s) HasClusterID() bool
- func (cp *VSphereWithK8s) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
- func (cp *VSphereWithK8s) Instances() (cloudprovider.Instances, bool)
- func (cp *VSphereWithK8s) InstancesV2() (cloudprovider.InstancesV2, bool)
- func (cp *VSphereWithK8s) LoadBalancer() (cloudprovider.LoadBalancer, bool)
- func (cp *VSphereWithK8s) ProviderName() string
- func (cp *VSphereWithK8s) Routes() (cloudprovider.Routes, bool)
- func (cp *VSphereWithK8s) Zones() (cloudprovider.Zones, bool)
Constants ¶
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" )
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 ¶
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.