Documentation ¶
Overview ¶
Package controllers implements controllers to handle allocations using Nutanix IPAM.
Index ¶
- func DefaultReconcilerOptions() reconcilerOptions
- type IPAddressClaimHandler
- func (h *IPAddressClaimHandler) EnsureAddress(ctx context.Context, address *ipamv1.IPAddress) (*ctrl.Result, error)
- func (h *IPAddressClaimHandler) FetchPool(ctx context.Context) (ctrlclient.Object, *ctrl.Result, error)
- func (h *IPAddressClaimHandler) ReleaseAddress(ctx context.Context) (*ctrl.Result, error)
- type NutanixProviderAdapter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultReconcilerOptions ¶
func DefaultReconcilerOptions() reconcilerOptions
Types ¶
type IPAddressClaimHandler ¶
type IPAddressClaimHandler struct {
// contains filtered or unexported fields
}
IPAddressClaimHandler reconciles a NutanixIPPool object.
func (*IPAddressClaimHandler) EnsureAddress ¶
func (h *IPAddressClaimHandler) EnsureAddress( ctx context.Context, address *ipamv1.IPAddress, ) (*ctrl.Result, error)
EnsureAddress ensures that the IPAddress contains a valid address.
func (*IPAddressClaimHandler) FetchPool ¶
func (h *IPAddressClaimHandler) FetchPool( ctx context.Context, ) (ctrlclient.Object, *ctrl.Result, error)
FetchPool fetches the NutanixIPPool.
func (*IPAddressClaimHandler) ReleaseAddress ¶
ReleaseAddress releases the ip address.
type NutanixProviderAdapter ¶
type NutanixProviderAdapter struct {
// contains filtered or unexported fields
}
NutanixProviderAdapter is used as middle layer for provider integration.
func NewNutanixProviderAdapter ¶
func NewNutanixProviderAdapter( client ctrlclient.Client, watchFilter string, secretInformer coreinformers.SecretInformer, cmInformer coreinformers.ConfigMapInformer, opts reconcilerOptions, ) *NutanixProviderAdapter
func (*NutanixProviderAdapter) ClaimHandlerFor ¶
func (i *NutanixProviderAdapter) ClaimHandlerFor( _ ctrlclient.Client, claim *ipamv1.IPAddressClaim, ) ipamutil.ClaimHandler
ClaimHandlerFor returns a claim handler for a specific claim.
func (*NutanixProviderAdapter) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
Directories ¶
Path | Synopsis |
---|---|
Package mockclient is a generated GoMock package.
|
Package mockclient is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.