Documentation ¶
Overview ¶
Package controllers implements controllers to handle allocations using infoblox resources.
Index ¶
- Constants
- type InfobloxClaimHandler
- func (h *InfobloxClaimHandler) EnsureAddress(ctx context.Context, address *ipamv1.IPAddress) (*ctrl.Result, error)
- func (h *InfobloxClaimHandler) FetchPool(ctx context.Context) (client.Object, *ctrl.Result, error)
- func (h *InfobloxClaimHandler) GetPool() client.Object
- func (h *InfobloxClaimHandler) ReleaseAddress(ctx context.Context) (*ctrl.Result, error)
- type InfobloxIPPoolReconciler
- type InfobloxInstanceReconciler
- type InfobloxProviderAdapter
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 InfobloxClaimHandler ¶
InfobloxClaimHandler handles infoblox claims.
func (*InfobloxClaimHandler) EnsureAddress ¶
func (h *InfobloxClaimHandler) EnsureAddress(ctx context.Context, address *ipamv1.IPAddress) (*ctrl.Result, error)
EnsureAddress ensures address.
func (*InfobloxClaimHandler) GetPool ¶
func (h *InfobloxClaimHandler) GetPool() client.Object
GetPool returns local pool.
func (*InfobloxClaimHandler) ReleaseAddress ¶
ReleaseAddress releases address.
type InfobloxIPPoolReconciler ¶
type InfobloxIPPoolReconciler struct { client.Client Scheme *runtime.Scheme OperatorNamespace string NewInfobloxClientFunc func(config infoblox.Config) (infoblox.Client, error) }
InfobloxIPPoolReconciler reconciles a InfobloxIPPool object.
func (*InfobloxIPPoolReconciler) Reconcile ¶
func (r *InfobloxIPPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, reterr error)
Reconcile an InfobloxIPPool.
func (*InfobloxIPPoolReconciler) SetupWithManager ¶
func (r *InfobloxIPPoolReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type InfobloxInstanceReconciler ¶
type InfobloxInstanceReconciler struct { client.Client Scheme *runtime.Scheme OperatorNamespace string NewInfobloxClientFunc func(config infoblox.Config) (infoblox.Client, error) }
InfobloxInstanceReconciler reconciles a InfobloxInstance object.
func (*InfobloxInstanceReconciler) Reconcile ¶
func (r *InfobloxInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, reterr error)
Reconcile and InfobloxInstance.
func (*InfobloxInstanceReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type InfobloxProviderAdapter ¶
type InfobloxProviderAdapter struct { NewInfobloxClientFunc func(config infoblox.Config) (infoblox.Client, error) OperatorNamespace string }
InfobloxProviderAdapter reconciles a InfobloxIPPool object.
func (*InfobloxProviderAdapter) ClaimHandlerFor ¶
func (r *InfobloxProviderAdapter) ClaimHandlerFor(cl client.Client, claim *ipamv1.IPAddressClaim) ipamutil.ClaimHandler
ClaimHandlerFor returns handler for claim.
func (*InfobloxProviderAdapter) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.