Documentation
¶
Index ¶
- Constants
- func IgnoreDomainError(reconcileRes ctrl.Result, err error) (ctrl.Result, error)
- func NewDomainError(format string, args ...interface{}) error
- type AsnClaimReconciler
- type AsnClaimRestorationData
- type AsnReconciler
- type DomainError
- type EventStatusRecorder
- type IpAddressClaimReconciler
- type IpAddressClaimRestorationData
- type IpAddressReconciler
- type IpRangeClaimReconciler
- type IpRangeClaimRestorationData
- type IpRangeReconciler
- type L2VPNClaimReconciler
- type L2VPNClaimRestorationData
- type L2VPNReconciler
- type ObjectWithConditions
- type PrefixClaimReconciler
- type PrefixClaimRestorationData
- type PrefixReconciler
Constants ¶
const AsnFinalizerName = "asn.netbox.dev/finalizer"
const AsnManagedCustomFieldsAnnotationName = "asn.netbox.dev/managed-custom-fields"
const IPManagedCustomFieldsAnnotationName = "ipaddress.netbox.dev/managed-custom-fields"
const IPRManagedCustomFieldsAnnotationName = "iprange.netbox.dev/managed-custom-fields"
const IpAddressFinalizerName = "ipaddress.netbox.dev/finalizer"
const IpRangeClaimFinalizerName = "iprangeclaim.netbox.dev/finalizer"
const IpRangeFinalizerName = "iprange.netbox.dev/finalizer"
const L2VPNClaimFinalizerName = "l2vpnclaim.netbox.dev/finalizer"
const L2VPNFinalizerName = "l2vpn.netbox.dev/finalizer"
const L2VPNManagedCustomFieldsAnnotationName = "l2vpn.netbox.dev/managed-custom-fields"
const PXManagedCustomFieldsAnnotationName = "prefix.netbox.dev/managed-custom-fields"
const PrefixFinalizerName = "prefix.netbox.dev/finalizer"
Variables ¶
This section is empty.
Functions ¶
func IgnoreDomainError ¶ added in v0.2.49
IgnoreDomainError strips DomainErrors from err (they have already been recorded in the status condition) while preserving any non-domain errors (e.g. a failed status patch) so they are returned to controller-runtime.
func NewDomainError ¶ added in v0.2.49
NewDomainError creates an error that will update the resource status condition. Use this for errors that should be visible in kubectl describe output.
Types ¶
type AsnClaimReconciler ¶ added in v0.2.73
type AsnClaimReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
}
AsnClaimReconciler reconciles a AsnClaim object
func (*AsnClaimReconciler) Reconcile ¶ added in v0.2.73
func (r *AsnClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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 (*AsnClaimReconciler) SetupWithManager ¶ added in v0.2.73
func (r *AsnClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type AsnClaimRestorationData ¶ added in v0.2.73
type AsnClaimRestorationData struct {
// only use immutable fields
Namespace string
Name string
ParentAsnRange string
Tenant string
}
func (*AsnClaimRestorationData) ComputeHash ¶ added in v0.2.73
func (rd *AsnClaimRestorationData) ComputeHash() string
type AsnReconciler ¶ added in v0.2.73
type AsnReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
}
AsnReconciler reconciles a Asn object
func (*AsnReconciler) Reconcile ¶ added in v0.2.73
func (r *AsnReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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 (*AsnReconciler) SetupWithManager ¶ added in v0.2.73
func (r *AsnReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type DomainError ¶ added in v0.2.49
type DomainError struct {
// contains filtered or unexported fields
}
DomainError wraps an error that should update status conditions. Use NewDomainError to create errors that should be reflected in status.
func (*DomainError) Error ¶ added in v0.2.49
func (e *DomainError) Error() string
func (*DomainError) Unwrap ¶ added in v0.2.49
func (e *DomainError) Unwrap() error
type EventStatusRecorder ¶
type EventStatusRecorder struct {
// contains filtered or unexported fields
}
func NewEventStatusRecorder ¶
func NewEventStatusRecorder(rec record.EventRecorder) *EventStatusRecorder
func (*EventStatusRecorder) Recorder ¶
func (esr *EventStatusRecorder) Recorder() record.EventRecorder
type IpAddressClaimReconciler ¶
type IpAddressClaimReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
OperatorNamespace string
RestConfig *rest.Config
}
IpAddressClaimReconciler reconciles a IpAddressClaim object
func (*IpAddressClaimReconciler) Reconcile ¶
func (r *IpAddressClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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) SetupWithManager ¶
func (r *IpAddressClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IpAddressClaimRestorationData ¶
type IpAddressClaimRestorationData struct {
// only use immutable fields
Namespace string
Name string
ParentPrefix string
Tenant string
}
func (*IpAddressClaimRestorationData) ComputeHash ¶ added in v0.2.73
func (rd *IpAddressClaimRestorationData) ComputeHash() string
type IpAddressReconciler ¶
type IpAddressReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
OperatorNamespace string
RestConfig *rest.Config
}
IpAddressReconciler reconciles a IpAddress object
func (*IpAddressReconciler) Reconcile ¶
func (r *IpAddressReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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 (*IpAddressReconciler) SetupWithManager ¶
func (r *IpAddressReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IpRangeClaimReconciler ¶
type IpRangeClaimReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
OperatorNamespace string
RestConfig *rest.Config
}
IpRangeClaimReconciler reconciles a IpRangeClaim object
func (*IpRangeClaimReconciler) Reconcile ¶
func (r *IpRangeClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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 (*IpRangeClaimReconciler) SetupWithManager ¶
func (r *IpRangeClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IpRangeClaimRestorationData ¶
type IpRangeClaimRestorationData struct {
// only use immutable fields
Namespace string
Name string
ParentPrefix string
Tenant string
Size string
}
func (*IpRangeClaimRestorationData) ComputeHash ¶ added in v0.2.73
func (rd *IpRangeClaimRestorationData) ComputeHash() string
type IpRangeReconciler ¶
type IpRangeReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
OperatorNamespace string
RestConfig *rest.Config
}
IpRangeReconciler reconciles a IpRange object
func (*IpRangeReconciler) Reconcile ¶
func (r *IpRangeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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 (*IpRangeReconciler) SetupWithManager ¶
func (r *IpRangeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type L2VPNClaimReconciler ¶ added in v0.2.72
type L2VPNClaimReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
OperatorNamespace string
RestConfig *rest.Config
}
L2VPNClaimReconciler reconciles a L2VPNClaim object
func (*L2VPNClaimReconciler) Reconcile ¶ added in v0.2.72
func (r *L2VPNClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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 (*L2VPNClaimReconciler) SetupWithManager ¶ added in v0.2.72
func (r *L2VPNClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type L2VPNClaimRestorationData ¶ added in v0.2.72
type L2VPNClaimRestorationData struct {
// only use immutable fields
Namespace string
Name string
Type string
Tenant string
IdentifierRangeStart string
IdentifierRangeEnd string
}
func (*L2VPNClaimRestorationData) ComputeHash ¶ added in v0.2.73
func (rd *L2VPNClaimRestorationData) ComputeHash() string
type L2VPNReconciler ¶ added in v0.2.72
type L2VPNReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
OperatorNamespace string
RestConfig *rest.Config
}
L2VPNReconciler reconciles a L2VPN object
func (*L2VPNReconciler) Reconcile ¶ added in v0.2.72
func (r *L2VPNReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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 (*L2VPNReconciler) SetupWithManager ¶ added in v0.2.72
func (r *L2VPNReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ObjectWithConditions ¶
type PrefixClaimReconciler ¶
type PrefixClaimReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
OperatorNamespace string
RestConfig *rest.Config
}
PrefixClaimReconciler reconciles a PrefixClaim object
func (*PrefixClaimReconciler) Reconcile ¶
func (r *PrefixClaimReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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) SetupWithManager ¶
func (r *PrefixClaimReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PrefixClaimRestorationData ¶
type PrefixClaimRestorationData struct {
// only use immutable fields
Namespace string
Name string
ParentPrefix string
PrefixLength string
Tenant string
ParentPrefixSelector string
}
func (*PrefixClaimRestorationData) ComputeHash ¶
func (rd *PrefixClaimRestorationData) ComputeHash() string
type PrefixReconciler ¶
type PrefixReconciler struct {
client.Client
Scheme *runtime.Scheme
NetboxClient *api.NetboxCompositeClient
EventStatusRecorder *EventStatusRecorder
OperatorNamespace string
RestConfig *rest.Config
}
PrefixReconciler reconciles a Prefix object
func (*PrefixReconciler) Reconcile ¶
func (r *PrefixReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcileResult ctrl.Result, reconcileErr 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 (*PrefixReconciler) SetupWithManager ¶
func (r *PrefixReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
- asn_controller.go
- asnclaim_controller.go
- asnclaim_helpers.go
- interfaces.go
- ipaddress_controller.go
- ipaddressclaim_controller.go
- ipaddressclaim_helpers.go
- iprange_controller.go
- iprangeclaim_controller.go
- iprangeclaim_helpers.go
- l2vpn_controller.go
- l2vpnclaim_controller.go
- l2vpnclaim_helpers.go
- prefix_controller.go
- prefixclaim_controller.go
- prefixclaim_helpers.go
- utils.go