Documentation ¶
Index ¶
- Constants
- func IsDNS1123Subdomain(value string) error
- func RegexError(msg string, fmt string, examples ...string) string
- type Metal3ClusterReconciler
- type Metal3DataReconciler
- func (r *Metal3DataReconciler) Metal3IPClaimToMetal3Data(_ context.Context, obj client.Object) []ctrl.Request
- func (r *Metal3DataReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *Metal3DataReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type Metal3DataTemplateReconciler
- func (r *Metal3DataTemplateReconciler) Metal3DataClaimToMetal3DataTemplate(_ context.Context, obj client.Object) []ctrl.Request
- func (r *Metal3DataTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *Metal3DataTemplateReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type Metal3LabelSyncReconciler
- func (r *Metal3LabelSyncReconciler) Metal3ClusterToBareMetalHosts(ctx context.Context, o client.Object) []ctrl.Request
- func (r *Metal3LabelSyncReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *Metal3LabelSyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type Metal3MachineReconciler
- func (r *Metal3MachineReconciler) BareMetalHostToMetal3Machines(_ context.Context, obj client.Object) []ctrl.Request
- func (r *Metal3MachineReconciler) ClusterToMetal3Machines(ctx context.Context, o client.Object) []ctrl.Request
- func (r *Metal3MachineReconciler) Metal3ClusterToMetal3Machines(ctx context.Context, o client.Object) []ctrl.Request
- func (r *Metal3MachineReconciler) Metal3DataClaimToMetal3Machines(_ context.Context, obj client.Object) []ctrl.Request
- func (r *Metal3MachineReconciler) Metal3DataToMetal3Machines(_ context.Context, obj client.Object) []ctrl.Request
- func (r *Metal3MachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *Metal3MachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type Metal3MachineTemplateReconciler
- func (r *Metal3MachineTemplateReconciler) Metal3MachinesToMetal3MachineTemplate(_ context.Context, o client.Object) []ctrl.Request
- func (r *Metal3MachineTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *Metal3MachineTemplateReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
- type Metal3RemediationReconciler
Constants ¶
const ( // PrefixAnnotationKey is prefix for annotation key. PrefixAnnotationKey = "metal3.io/metal3-label-sync-prefixes" // Metal3Machine is name of the Metal3 CRD. Metal3Machine = "Metal3Machine" )
const DNS1123SubdomainMaxLength int = 253
DNS1123SubdomainMaxLength is a subdomain's max length in DNS (RFC 1123).
Variables ¶
This section is empty.
Functions ¶
func IsDNS1123Subdomain ¶ added in v0.4.2
IsDNS1123Subdomain tests for a string that conforms to the definition of a subdomain in DNS (RFC 1123).
Types ¶
type Metal3ClusterReconciler ¶
type Metal3ClusterReconciler struct { Client client.Client ManagerFactory baremetal.ManagerFactoryInterface Log logr.Logger WatchFilterValue string }
Metal3ClusterReconciler reconciles a Metal3Cluster object.
func (*Metal3ClusterReconciler) Reconcile ¶
func (r *Metal3ClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
Reconcile reads that state of the cluster for a Metal3Cluster object and makes changes based on the state read and what is in the Metal3Cluster.Spec.
func (*Metal3ClusterReconciler) SetupWithManager ¶
func (r *Metal3ClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager will add watches for this controller.
type Metal3DataReconciler ¶ added in v0.4.0
type Metal3DataReconciler struct { Client client.Client ManagerFactory baremetal.ManagerFactoryInterface Log logr.Logger WatchFilterValue string }
Metal3DataReconciler reconciles a Metal3Data object.
func (*Metal3DataReconciler) Metal3IPClaimToMetal3Data ¶ added in v0.4.0
func (r *Metal3DataReconciler) Metal3IPClaimToMetal3Data(_ context.Context, obj client.Object) []ctrl.Request
Metal3IPClaimToMetal3Data will return a reconcile request for a Metal3Data if the event is for a Metal3IPClaim and that Metal3IPClaim references a Metal3Data.
func (*Metal3DataReconciler) Reconcile ¶ added in v0.4.0
func (r *Metal3DataReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
Reconcile handles Metal3Data events.
func (*Metal3DataReconciler) SetupWithManager ¶ added in v0.4.0
func (r *Metal3DataReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager will add watches for this controller.
type Metal3DataTemplateReconciler ¶ added in v0.4.0
type Metal3DataTemplateReconciler struct { Client client.Client ManagerFactory baremetal.ManagerFactoryInterface Log logr.Logger WatchFilterValue string }
Metal3DataTemplateReconciler reconciles a Metal3DataTemplate object.
func (*Metal3DataTemplateReconciler) Metal3DataClaimToMetal3DataTemplate ¶ added in v0.4.0
func (r *Metal3DataTemplateReconciler) Metal3DataClaimToMetal3DataTemplate(_ context.Context, obj client.Object) []ctrl.Request
Metal3DataClaimToMetal3DataTemplate will return a reconcile request for a Metal3DataTemplate if the event is for a Metal3DataClaim and that Metal3DataClaim references a Metal3DataTemplate.
func (*Metal3DataTemplateReconciler) Reconcile ¶ added in v0.4.0
func (r *Metal3DataTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
Reconcile handles Metal3DataTemplate events.
func (*Metal3DataTemplateReconciler) SetupWithManager ¶ added in v0.4.0
func (r *Metal3DataTemplateReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager will add watches for this controller.
type Metal3LabelSyncReconciler ¶ added in v0.4.2
type Metal3LabelSyncReconciler struct { Client client.Client ManagerFactory baremetal.ManagerFactoryInterface Log logr.Logger CapiClientGetter baremetal.ClientGetter WatchFilterValue string }
Metal3LabelSyncReconciler reconciles label updates to BareMetalHost objects with the corresponding K Node objects in the workload cluster.
func (*Metal3LabelSyncReconciler) Metal3ClusterToBareMetalHosts ¶ added in v0.4.2
func (r *Metal3LabelSyncReconciler) Metal3ClusterToBareMetalHosts(ctx context.Context, o client.Object) []ctrl.Request
Metal3ClusterToBareMetalHosts is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of BareMetalHosts' label updates.
func (*Metal3LabelSyncReconciler) Reconcile ¶ added in v0.4.2
func (r *Metal3LabelSyncReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
Reconcile handles label sync events.
func (*Metal3LabelSyncReconciler) SetupWithManager ¶ added in v0.4.2
func (r *Metal3LabelSyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager will add watches for this controller.
type Metal3MachineReconciler ¶
type Metal3MachineReconciler struct { Client client.Client ManagerFactory baremetal.ManagerFactoryInterface Log logr.Logger CapiClientGetter baremetal.ClientGetter WatchFilterValue string }
Metal3MachineReconciler reconciles a Metal3Machine object.
func (*Metal3MachineReconciler) BareMetalHostToMetal3Machines ¶
func (r *Metal3MachineReconciler) BareMetalHostToMetal3Machines(_ context.Context, obj client.Object) []ctrl.Request
BareMetalHostToMetal3Machines will return a reconcile request for a Metal3Machine if the event is for a BareMetalHost and that BareMetalHost references a Metal3Machine.
func (*Metal3MachineReconciler) ClusterToMetal3Machines ¶ added in v0.4.0
func (r *Metal3MachineReconciler) ClusterToMetal3Machines(ctx context.Context, o client.Object) []ctrl.Request
ClusterToMetal3Machines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of Metal3Machines.
func (*Metal3MachineReconciler) Metal3ClusterToMetal3Machines ¶
func (r *Metal3MachineReconciler) Metal3ClusterToMetal3Machines(ctx context.Context, o client.Object) []ctrl.Request
Metal3ClusterToMetal3Machines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of Metal3Machines.
func (*Metal3MachineReconciler) Metal3DataClaimToMetal3Machines ¶ added in v0.4.0
func (r *Metal3MachineReconciler) Metal3DataClaimToMetal3Machines(_ context.Context, obj client.Object) []ctrl.Request
Metal3DataClaimToMetal3Machines will return a reconcile request for a Metal3Machine if the event is for a Metal3Data and that Metal3Data references a Metal3Machine.
func (*Metal3MachineReconciler) Metal3DataToMetal3Machines ¶ added in v0.4.0
func (r *Metal3MachineReconciler) Metal3DataToMetal3Machines(_ context.Context, obj client.Object) []ctrl.Request
Metal3DataToMetal3Machines will return a reconcile request for a Metal3Machine if the event is for a Metal3Data and that Metal3Data references a Metal3Machine.
func (*Metal3MachineReconciler) Reconcile ¶
func (r *Metal3MachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
Reconcile handles Metal3Machine events.
func (*Metal3MachineReconciler) SetupWithManager ¶
func (r *Metal3MachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager will add watches for this controller.
type Metal3MachineTemplateReconciler ¶ added in v0.5.0
type Metal3MachineTemplateReconciler struct { Client client.Client ManagerFactory baremetal.ManagerFactoryInterface Log logr.Logger WatchFilterValue string }
Metal3MachineTemplateReconciler reconciles a Metal3MachineTemplate object.
func (*Metal3MachineTemplateReconciler) Metal3MachinesToMetal3MachineTemplate ¶ added in v0.5.5
func (r *Metal3MachineTemplateReconciler) Metal3MachinesToMetal3MachineTemplate(_ context.Context, o client.Object) []ctrl.Request
Metal3MachinesToMetal3MachineTemplate is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of Metal3MachineTemplates.
func (*Metal3MachineTemplateReconciler) Reconcile ¶ added in v0.5.0
func (r *Metal3MachineTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
Reconcile handles Metal3MachineTemplate events.
func (*Metal3MachineTemplateReconciler) SetupWithManager ¶ added in v0.5.0
func (r *Metal3MachineTemplateReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager will add watches for Metal3MachineTemplate controller.
type Metal3RemediationReconciler ¶ added in v0.5.2
type Metal3RemediationReconciler struct { client.Client ManagerFactory baremetal.ManagerFactoryInterface Log logr.Logger IsOutOfServiceTaintEnabled bool }
Metal3RemediationReconciler reconciles a Metal3Remediation object.
func (*Metal3RemediationReconciler) Reconcile ¶ added in v0.5.2
func (r *Metal3RemediationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
Reconcile handles Metal3Remediation events.
func (*Metal3RemediationReconciler) SetupWithManager ¶ added in v0.5.2
func (r *Metal3RemediationReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager, options controller.Options) error
SetupWithManager will add watches for Metal3Remediation controller.