Documentation
¶
Overview ¶
Package controllers implements controllers to handle allocations using in-cluster resources.
Index ¶
- Constants
- type GlobalInClusterIPPoolReconciler
- type IPAddressClaimHandler
- func (h *IPAddressClaimHandler) EnsureAddress(ctx context.Context, address *ipamv1.IPAddress) (*ctrl.Result, error)
- func (h *IPAddressClaimHandler) FetchPool(ctx context.Context) (client.Object, *ctrl.Result, error)
- func (h *IPAddressClaimHandler) ReleaseAddress(_ context.Context) (*ctrl.Result, error)
- type InClusterIPPoolReconciler
- type InClusterProviderAdapter
Constants ¶
const (
// ProtectPoolFinalizer is used to prevent deletion of a Pool object while its addresses have not been deleted.
ProtectPoolFinalizer = "ipam.cluster.x-k8s.io/ProtectPool"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalInClusterIPPoolReconciler ¶
GlobalInClusterIPPoolReconciler reconciles a GlobalInClusterIPPool object.
func (*GlobalInClusterIPPoolReconciler) Reconcile ¶
func (r *GlobalInClusterIPPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*GlobalInClusterIPPoolReconciler) SetupWithManager ¶
func (r *GlobalInClusterIPPoolReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IPAddressClaimHandler ¶
IPAddressClaimHandler reconciles a InClusterIPPool 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) ReleaseAddress ¶
ReleaseAddress releases the ip address.
type InClusterIPPoolReconciler ¶
InClusterIPPoolReconciler reconciles a InClusterIPPool object.
func (*InClusterIPPoolReconciler) Reconcile ¶
func (r *InClusterIPPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*InClusterIPPoolReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type InClusterProviderAdapter ¶
InClusterProviderAdapter is used as middle layer for provider integration.
func (*InClusterProviderAdapter) ClaimHandlerFor ¶
func (i *InClusterProviderAdapter) ClaimHandlerFor(_ client.Client, claim *ipamv1.IPAddressClaim) ipamutil.ClaimHandler
ClaimHandlerFor returns a claim handler for a specific claim.
func (*InClusterProviderAdapter) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.