Documentation ¶
Index ¶
- Constants
- func ParseNetworkName(networkName string) (udnNamespace, udnName string)
- func RenderNADSpec(networkName, nadName string, spec SpecGetter) (*netv1.NetworkAttachmentDefinitionSpec, error)
- func RenderNetAttachDefManifest(obj client.Object, targetNamespace string) (*netv1.NetworkAttachmentDefinition, error)
- type SpecGetter
Constants ¶
View Source
const ( OvnK8sCNIOverlay = "ovn-k8s-cni-overlay" FinalizerUserDefinedNetwork = "k8s.ovn.org/user-defined-network-protection" LabelUserDefinedNetwork = "k8s.ovn.org/user-defined-network" )
Variables ¶
This section is empty.
Functions ¶
func ParseNetworkName ¶
func RenderNADSpec ¶
func RenderNADSpec(networkName, nadName string, spec SpecGetter) (*netv1.NetworkAttachmentDefinitionSpec, error)
Types ¶
type SpecGetter ¶
type SpecGetter interface { GetTopology() userdefinednetworkv1.NetworkTopology GetLayer3() *userdefinednetworkv1.Layer3Config GetLayer2() *userdefinednetworkv1.Layer2Config }
func GetSpec ¶
func GetSpec(obj client.Object) SpecGetter
Click to show internal directories.
Click to hide internal directories.