Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NSXTNetworkProvider holds the network provider name for NSX-T based setups. NSXTNetworkProvider = "NSXT_CONTAINER_PLUGIN" // VDSNetworkProvider holds the network provider name for VDS based setups. VDSNetworkProvider = "VSPHERE_NETWORK" )
Variables ¶
This section is empty.
Functions ¶
func GetNetworkProvider ¶
GetNetworkProvider reads the network-config configmap in Supervisor cluster. Returns the network provider as NSXT_CONTAINER_PLUGIN for NSX-T, or VSPHERE_NETWORK for VDS. Otherwise, returns an error, if network provider is not present in the configmap.
func GetTKGVMIP ¶
func GetTKGVMIP(ctx context.Context, vmOperatorClient client.Client, dc dynamic.Interface, vmNamespace, vmName string, nsxConfiguration bool) (string, error)
GetTKGVMIP finds the external facing IP address of a TKG VM object from a given Supervisor Namespace based on the networking configuration (NSX-T or VDS).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.