Documentation ¶
Index ¶
- Constants
- Variables
- func GetUUIDFromProviderID(providerID string) string
- func NewInstances(clusterNS string, kcfg *rest.Config) (cloudprovider.Instances, error)
- func NewLoadBalancer(clusterNS string, kcfg *rest.Config, ownerRef *metav1.OwnerReference) (cloudprovider.LoadBalancer, error)
- func NewZones(namespace string, kcfg *rest.Config) (cloudprovider.Zones, error)
- type RoutesProvider
- type SupervisorEndpoint
- type VSphereParavirtual
- func (cp *VSphereParavirtual) Clusters() (cloudprovider.Clusters, bool)
- func (cp *VSphereParavirtual) HasClusterID() bool
- func (cp *VSphereParavirtual) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
- func (cp *VSphereParavirtual) Instances() (cloudprovider.Instances, bool)
- func (cp *VSphereParavirtual) InstancesV2() (cloudprovider.InstancesV2, bool)
- func (cp *VSphereParavirtual) LoadBalancer() (cloudprovider.LoadBalancer, bool)
- func (cp *VSphereParavirtual) ProviderName() string
- func (cp *VSphereParavirtual) Routes() (cloudprovider.Routes, bool)
- func (cp *VSphereParavirtual) Zones() (cloudprovider.Zones, bool)
Constants ¶
const ( // RegisteredProviderName is the name of the cloud provider registered with // Kubernetes. RegisteredProviderName string = "vsphere-paravirtual" // ProviderName is the name used for constructing Provider ID ProviderName string = "vsphere" // CloudControllerManagerNS is the namespace for vsphere paravirtual cluster cloud provider CloudControllerManagerNS = "vmware-system-cloud-provider" )
const ( // VsphereParavirtualCloudProviderConfigPath is the path for vsphere paravirtual cloud provider config file VsphereParavirtualCloudProviderConfigPath string = "/etc/kubernetes/guestclusters/tanzukubernetescluster/ownerref.json" // SupervisorClusterConfigPath is the path for supervisor access related files, // like secret related file SupervisorClusterConfigPath = "/etc/cloud/ccm-provider" // SupervisorClusterAccessTokenFile is the access token file for supervisor access SupervisorClusterAccessTokenFile = "token" // SupervisorClusterAccessCAFile is the CA file for supervisor access SupervisorClusterAccessCAFile = "ca.crt" // SupervisorClusterAccessNamespaceFile is the namespace for supervisor access SupervisorClusterAccessNamespaceFile = "namespace" // SupervisorAPIServerPortEnv reads supervisor service endpoint info from env SupervisorAPIServerPortEnv string = "SUPERVISOR_APISERVER_PORT" // SupervisorAPIServerEndpointIPEnv reads supervisor API server endpoint IP from env SupervisorAPIServerEndpointIPEnv string = "SUPERVISOR_APISERVER_ENDPOINT_IP" // SupervisorServiceAccountNameEnv reads supervisor service account name from env SupervisorServiceAccountNameEnv string = "SUPERVISOR_CLUSTER_SERVICEACCOUNT_SECRET_NAME" // SupervisorAPIServerFQDN reads supervisor service API server's fully qualified domain name from env SupervisorAPIServerFQDN string = "supervisor.default.svc" )
Variables ¶
var ( // SupervisorClusterSecret is the name of vsphere paravirtual supervisor cluster cloud provider secret SupervisorClusterSecret = "cloud-provider-creds" // ClusterName contains the cluster-name flag injected from main, needed for cleanup ClusterName string // RouteEnabled if set to true, will start ippool and node controller. RouteEnabled bool )
var DiscoverNodeBackoff = wait.Backoff{ Steps: 20, Duration: 50 * time.Millisecond, Jitter: 1.0, }
DiscoverNodeBackoff is set to be the same with https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/cloud/node_controller.go#L83
Functions ¶
func GetUUIDFromProviderID ¶
GetUUIDFromProviderID returns a UUID from the supplied cloud provider ID.
func NewInstances ¶
NewInstances returns an implementation of cloudprovider.Instances
func NewLoadBalancer ¶
func NewLoadBalancer(clusterNS string, kcfg *rest.Config, ownerRef *metav1.OwnerReference) (cloudprovider.LoadBalancer, error)
NewLoadBalancer returns an implementation of cloudprovider.LoadBalancer
Types ¶
type RoutesProvider ¶ added in v1.21.0
RoutesProvider is the interface definition for Routes functionality
func NewRoutes ¶ added in v1.21.0
func NewRoutes(clusterNS string, kcfg *rest.Config, ownerRef metav1.OwnerReference, vpcModeEnabled bool) (RoutesProvider, error)
NewRoutes returns an implementation of RoutesProvider
type SupervisorEndpoint ¶
type SupervisorEndpoint struct { // supervisor cluster proxy service hostname Endpoint string // supervisor cluster proxy service port Port string }
SupervisorEndpoint is the supervisor cluster endpoint
type VSphereParavirtual ¶
type VSphereParavirtual struct {
// contains filtered or unexported fields
}
VSphereParavirtual is an implementation of cloud provider Interface for vsphere paravirtual.
func (*VSphereParavirtual) Clusters ¶
func (cp *VSphereParavirtual) Clusters() (cloudprovider.Clusters, bool)
Clusters returns a clusters interface. Also returns true if the interface is supported, false otherwise.
func (*VSphereParavirtual) HasClusterID ¶
func (cp *VSphereParavirtual) HasClusterID() bool
HasClusterID returns true if a ClusterID is required and set/
func (*VSphereParavirtual) Initialize ¶
func (cp *VSphereParavirtual) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
Initialize initializes the vSphere paravirtual cloud provider.
func (*VSphereParavirtual) Instances ¶
func (cp *VSphereParavirtual) Instances() (cloudprovider.Instances, bool)
Instances returns an instances interface. Also returns true if the interface is supported, false otherwise.
func (*VSphereParavirtual) InstancesV2 ¶
func (cp *VSphereParavirtual) InstancesV2() (cloudprovider.InstancesV2, bool)
InstancesV2 returns an implementation of cloudprovider.InstancesV2.
TODO: implement this for v1.20
func (*VSphereParavirtual) LoadBalancer ¶
func (cp *VSphereParavirtual) LoadBalancer() (cloudprovider.LoadBalancer, bool)
LoadBalancer returns a balancer interface. Also returns true if the interface is supported, false otherwise.
func (*VSphereParavirtual) ProviderName ¶
func (cp *VSphereParavirtual) ProviderName() string
ProviderName returns the cloud provider ID. Note: Returns 'vsphere' instead of 'vsphere-paravirtual' since CAPV expects the ProviderID to be in form 'vsphere://***' https://github.com/kubernetes/cloud-provider-vsphere/issues/447
func (*VSphereParavirtual) Routes ¶
func (cp *VSphereParavirtual) Routes() (cloudprovider.Routes, bool)
Routes returns a routes interface along with whether the interface is supported.
func (*VSphereParavirtual) Zones ¶
func (cp *VSphereParavirtual) Zones() (cloudprovider.Zones, bool)
Zones returns a zones interface. Also returns true if the interface is supported, false otherwise.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
apis
|
|
nsxnetworking/v1alpha1
Package v1alpha1 contains API Schema definitions for the nsxnetworking v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=nsx.vmware.com
|
Package v1alpha1 contains API Schema definitions for the nsxnetworking v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=nsx.vmware.com |
client
|
|
clientset/versioned
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
clientset/versioned/typed/nsxnetworking/v1alpha1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
clientset/versioned/typed/nsxnetworking/v1alpha1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |
controllers
|
|