Documentation
¶
Index ¶
- Constants
- Variables
- type ElementalClusterReconciler
- type ElementalClusterTemplateReconciler
- type ElementalHostReconciler
- func (r *ElementalHostReconciler) ElementalMachineToElementalHost(ctx context.Context, obj client.Object) []ctrl.Request
- func (r *ElementalHostReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *ElementalHostReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ElementalMachineReconciler
- func (r *ElementalMachineReconciler) ClusterToElementalMachines(ctx context.Context, obj client.Object) []ctrl.Request
- func (r *ElementalMachineReconciler) ElementalHostToElementalMachine(ctx context.Context, obj client.Object) []ctrl.Request
- func (r *ElementalMachineReconciler) MachineToElementalMachine(ctx context.Context, obj client.Object) []ctrl.Request
- func (r *ElementalMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *ElementalMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- type ElementalMachineTemplateReconciler
- type ElementalRegistrationReconciler
Constants ¶
const (
DefaultRequeuePeriod = 10 * time.Second
)
Variables ¶
var ( ErrMissingControlPlaneEndpoint = errors.New("ElementalCluster.spec.controlPlaneEndpoint was not defined") ErrMissingCAPIClusterOwner = errors.New("Missing CAPI Cluster owner") )
var ( ErrAPIEndpointNil = errors.New("API endpoint is nil, the controller was not initialized correctly") ErrNoPrivateKey = errors.New("could not find 'privKey' value in registration secret") )
var ( // ErrEnqueueing is returned whenever there is an error enqueueing additional resources. ErrEnqueueing = errors.New("enqueueing error") )
Common Errors.
var (
ErrMissingHostReference = errors.New("missing host reference")
)
Functions ¶
This section is empty.
Types ¶
type ElementalClusterReconciler ¶
ElementalClusterReconciler reconciles a ElementalCluster object.
func (*ElementalClusterReconciler) Reconcile ¶
func (r *ElementalClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
For more details about the reconciliation loop, check the official CAPI documentation: - https://cluster-api.sigs.k8s.io/developer/providers/cluster-infrastructure
func (*ElementalClusterReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type ElementalClusterTemplateReconciler ¶
ElementalClusterTemplateReconciler reconciles a ElementalClusterTemplate object.
func (*ElementalClusterTemplateReconciler) Reconcile ¶
func (r *ElementalClusterTemplateReconciler) Reconcile(ctx context.Context, _ 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*ElementalClusterTemplateReconciler) SetupWithManager ¶
func (r *ElementalClusterTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ElementalHostReconciler ¶
ElementalHostReconciler reconciles a ElementalHost object.
func (*ElementalHostReconciler) ElementalMachineToElementalHost ¶ added in v0.7.0
func (*ElementalHostReconciler) Reconcile ¶
func (r *ElementalHostReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*ElementalHostReconciler) SetupWithManager ¶
func (r *ElementalHostReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ElementalMachineReconciler ¶
type ElementalMachineReconciler struct { client.Client Scheme *runtime.Scheme Tracker utils.RemoteTracker RequeuePeriod time.Duration }
ElementalMachineReconciler reconciles a ElementalMachine object.
func (*ElementalMachineReconciler) ClusterToElementalMachines ¶
func (r *ElementalMachineReconciler) ClusterToElementalMachines(ctx context.Context, obj client.Object) []ctrl.Request
ClusterToElementalMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of ElementalMachines.
func (*ElementalMachineReconciler) ElementalHostToElementalMachine ¶
func (*ElementalMachineReconciler) MachineToElementalMachine ¶
func (*ElementalMachineReconciler) Reconcile ¶
func (r *ElementalMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile For more details about the reconciliation loop, check the official CAPI documentation: - https://cluster-api.sigs.k8s.io/developer/providers/machine-infrastructure
func (*ElementalMachineReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type ElementalMachineTemplateReconciler ¶
ElementalMachineTemplateReconciler reconciles a ElementalMachineTemplate object.
func (*ElementalMachineTemplateReconciler) Reconcile ¶
func (r *ElementalMachineTemplateReconciler) Reconcile(ctx context.Context, _ 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*ElementalMachineTemplateReconciler) SetupWithManager ¶
func (r *ElementalMachineTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ElementalRegistrationReconciler ¶
type ElementalRegistrationReconciler struct { client.Client Scheme *runtime.Scheme APIUrl *url.URL DefaultCACert string }
ElementalRegistrationReconciler reconciles a ElementalRegistration object.
func (*ElementalRegistrationReconciler) Reconcile ¶
func (r *ElementalRegistrationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*ElementalRegistrationReconciler) SetupWithManager ¶
func (r *ElementalRegistrationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.