Documentation
¶
Index ¶
- Constants
- type IpAddressClaimReconciler
- func (r *IpAddressClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *IpAddressClaimReconciler) SetConditionAndCreateEvent(ctx context.Context, o *netboxv1.IpAddressClaim, condition metav1.Condition, ...) error
- func (r *IpAddressClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
- type IpAddressClaimRestorationData
- type IpAddressReconciler
- func (r *IpAddressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *IpAddressReconciler) SetConditionAndCreateEvent(ctx context.Context, o *netboxv1.IpAddress, condition metav1.Condition, ...) error
- func (r *IpAddressReconciler) SetupWithManager(mgr ctrl.Manager) error
- type PrefixClaimReconciler
- func (r *PrefixClaimReconciler) GetAvailablePrefix(o *netboxv1.PrefixClaim) (*models.Prefix, error)
- func (r *PrefixClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *PrefixClaimReconciler) SetConditionAndCreateEvent(ctx context.Context, o *netboxv1.PrefixClaim, condition metav1.Condition, ...) error
- func (r *PrefixClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
- type PrefixClaimRestorationData
- type PrefixReconciler
Constants ¶
const IpAddressFinalizerName = "ipaddress.netbox.dev/finalizer"
const LastIpAddressMetadataAnnotationName = "ipaddress.netbox.dev/last-ip-address-metadata"
const LastPrefixMetadataAnnotationName = "prefix.netbox.dev/last-prefix-metadata"
const PrefixFinalizerName = "prefix.netbox.dev/finalizer"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpAddressClaimReconciler ¶
type IpAddressClaimReconciler struct { client.Client Scheme *runtime.Scheme NetboxClient *api.NetboxClient Recorder record.EventRecorder OperatorNamespace string RestConfig *rest.Config }
IpAddressClaimReconciler reconciles a IpAddressClaim object
func (*IpAddressClaimReconciler) Reconcile ¶
func (r *IpAddressClaimReconciler) 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 (*IpAddressClaimReconciler) SetConditionAndCreateEvent ¶
func (r *IpAddressClaimReconciler) SetConditionAndCreateEvent(ctx context.Context, o *netboxv1.IpAddressClaim, condition metav1.Condition, eventType string, conditionMessageAppend string) error
SetConditionAndCreateEvent updates the condition and creates a log entry and event for this condition change
func (*IpAddressClaimReconciler) SetupWithManager ¶
func (r *IpAddressClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IpAddressReconciler ¶
type IpAddressReconciler struct { client.Client Scheme *runtime.Scheme NetboxClient *api.NetboxClient Recorder record.EventRecorder OperatorNamespace string RestConfig *rest.Config }
IpAddressReconciler reconciles a IpAddress object
func (*IpAddressReconciler) Reconcile ¶
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 (*IpAddressReconciler) SetConditionAndCreateEvent ¶
func (*IpAddressReconciler) SetupWithManager ¶
func (r *IpAddressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PrefixClaimReconciler ¶
type PrefixClaimReconciler struct { client.Client Scheme *runtime.Scheme NetboxClient *api.NetboxClient Recorder record.EventRecorder OperatorNamespace string RestConfig *rest.Config }
PrefixClaimReconciler reconciles a PrefixClaim object
func (*PrefixClaimReconciler) GetAvailablePrefix ¶
func (r *PrefixClaimReconciler) GetAvailablePrefix(o *netboxv1.PrefixClaim) (*models.Prefix, error)
func (*PrefixClaimReconciler) Reconcile ¶
func (r *PrefixClaimReconciler) 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 (*PrefixClaimReconciler) SetConditionAndCreateEvent ¶
func (r *PrefixClaimReconciler) SetConditionAndCreateEvent(ctx context.Context, o *netboxv1.PrefixClaim, condition metav1.Condition, eventType string, conditionMessageAppend string) error
TODO(henrybear327): Duplicated code, consider refactoring this
func (*PrefixClaimReconciler) SetupWithManager ¶
func (r *PrefixClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PrefixReconciler ¶
type PrefixReconciler struct { client.Client Scheme *runtime.Scheme NetboxClient *api.NetboxClient Recorder record.EventRecorder OperatorNamespace string RestConfig *rest.Config }
PrefixReconciler reconciles a Prefix object
func (*PrefixReconciler) Reconcile ¶
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 (*PrefixReconciler) SetConditionAndCreateEvent ¶
func (r *PrefixReconciler) SetConditionAndCreateEvent(ctx context.Context, o *netboxv1.Prefix, condition metav1.Condition, eventType string, conditionMessageAppend string) error
TODO(henrybear327): Duplicated code, consider refactoring this
func (*PrefixReconciler) SetupWithManager ¶
func (r *PrefixReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.