Documentation ¶
Overview ¶
Package network contains code for configuring network services.
Index ¶
- Constants
- Variables
- func DummyLBNetworkProvider() services.NetworkProvider
- func DummyNetworkProvider() services.NetworkProvider
- func GetNSXTVirtualNetworkName(clusterName string) string
- func NSXTVpcNetworkProvider(client client.Client) services.NetworkProvider
- func NetOpNetworkProvider(client client.Client) services.NetworkProvider
- func NsxtNetworkProvider(client client.Client, disableFW string) services.NetworkProvider
Constants ¶
View Source
const ( // NSXTVNetSelectorKey is also defined in VM Operator. NSXTVNetSelectorKey = "ncp.vmware.com/virtual-network-name" // CAPVDefaultNetworkLabel is a label used to identify the default network. CAPVDefaultNetworkLabel = "capv.vmware.com/is-default-network" // NetOpNetworkNameAnnotation is the key used in an annotation to define the NetOp network. The expected value is the network name. NetOpNetworkNameAnnotation = "netoperator.vmware.com/network-name" // SystemNamespace is the namespace where supervisor control plane VMs reside. SystemNamespace = "kube-system" )
Variables ¶
View Source
var ( // NetworkGVKNetOperator is the GVK used for networks in net-operator mode. NetworkGVKNetOperator = netopv1.SchemeGroupVersion.WithKind("Network") // NetworkGVKNSXT is the GVK used for networks in NSX-T mode. NetworkGVKNSXT = ncpv1.SchemeGroupVersion.WithKind("VirtualNetwork") // NetworkGVKNSXTVPC is the GVK used for networks in NSX-T VPC mode. NetworkGVKNSXTVPC = nsxopv1.SchemeGroupVersion.WithKind("SubnetSet") )
Functions ¶
func DummyLBNetworkProvider ¶
func DummyLBNetworkProvider() services.NetworkProvider
DummyLBNetworkProvider returns an instance of dummy network provider that has a LB.
func DummyNetworkProvider ¶
func DummyNetworkProvider() services.NetworkProvider
DummyNetworkProvider returns an instance of dummy network provider.
func GetNSXTVirtualNetworkName ¶
GetNSXTVirtualNetworkName returns the name of the NSX-T vnet object.
func NSXTVpcNetworkProvider ¶ added in v1.10.0
func NSXTVpcNetworkProvider(client client.Client) services.NetworkProvider
NSXTVpcNetworkProvider returns an instance of nsx-vpc type network provider.
func NetOpNetworkProvider ¶
func NetOpNetworkProvider(client client.Client) services.NetworkProvider
NetOpNetworkProvider returns a NetOp (VDS) Network Provider.
func NsxtNetworkProvider ¶
func NsxtNetworkProvider(client client.Client, disableFW string) services.NetworkProvider
NsxtNetworkProvider returns an instance of nsx-t type network provider.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.