nsxipmanager

package
v1.31.1-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PublicIPPoolType allows Pod IP address routable outside of Tier 0 router.
	PublicIPPoolType = "Public"

	// PrivateIPPoolType allows Pod IP address routable within VPC router.
	PrivateIPPoolType = "Private"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NSXIPManager

type NSXIPManager interface {
	// ClaimPodCIDR claims a pod cidr for a node.
	ClaimPodCIDR(node *corev1.Node) error
	// ReleasePodCIDR releases a pod cidr for a node.
	ReleasePodCIDR(node *corev1.Node) error
}

NSXIPManager defines an interface that can interact with NSX to claim/release pod cidr.

func NewNSXT1IPManager

func NewNSXT1IPManager(ippoolManager ippoolmanager.IPPoolManager, clusterName, svNamespace string, ownerRef *metav1.OwnerReference) NSXIPManager

NewNSXT1IPManager creates a new NSXT1IPManager object.

func NewNSXVPCIPManager

func NewNSXVPCIPManager(client nsxclients.Interface, informerFactory nsxinformers.SharedInformerFactory, svNamespace, podIPPoolType string, ownerRef *metav1.OwnerReference) NSXIPManager

NewNSXVPCIPManager returns a new NSXVPCIPManager object.

type NSXT1IPManager

type NSXT1IPManager struct {
	// contains filtered or unexported fields
}

NSXT1IPManager is an implementation of NSXIPManager for NSX-T T1.

func (*NSXT1IPManager) ClaimPodCIDR

func (m *NSXT1IPManager) ClaimPodCIDR(node *corev1.Node) error

ClaimPodCIDR will claim pod cidr for the node by adding subnet to IPPool.

func (*NSXT1IPManager) ReleasePodCIDR

func (m *NSXT1IPManager) ReleasePodCIDR(node *corev1.Node) error

ReleasePodCIDR will release pod cidr for the node by deleting subnet from IPPool.

type NSXVPCIPManager

type NSXVPCIPManager struct {
	// contains filtered or unexported fields
}

NSXVPCIPManager is an implementation of NSXIPManager for NSX-T VPC.

func (*NSXVPCIPManager) ClaimPodCIDR

func (m *NSXVPCIPManager) ClaimPodCIDR(node *corev1.Node) error

ClaimPodCIDR will claim pod cidr for the node by creating IPAddressAllocation CR.

func (*NSXVPCIPManager) ReleasePodCIDR

func (m *NSXVPCIPManager) ReleasePodCIDR(node *corev1.Node) error

ReleasePodCIDR will release pod cidr for the node by deleting IPAddressAllocation CR.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL