Documentation ¶
Index ¶
- func GetNutanixCredsFromSecret(ctx context.Context, kubectl client.Client, secretName, secretNS string) (credentials.BasicAuthCredential, error)
- type CNIReconciler
- type IPValidator
- type Reconciler
- func (r *Reconciler) CheckControlPlaneReady(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
- func (r *Reconciler) Reconcile(ctx context.Context, log logr.Logger, c *anywherev1.Cluster) (controller.Result, error)
- func (r *Reconciler) ReconcileCNI(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
- func (r *Reconciler) ReconcileControlPlane(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
- func (r *Reconciler) ReconcileWorkers(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
- func (r *Reconciler) ValidateClusterSpec(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
- type RemoteClientRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNutanixCredsFromSecret ¶
func GetNutanixCredsFromSecret(ctx context.Context, kubectl client.Client, secretName, secretNS string) (credentials.BasicAuthCredential, error)
GetNutanixCredsFromSecret returns the Nutanix credentials from a secret.
Types ¶
type CNIReconciler ¶
type CNIReconciler interface {
Reconcile(ctx context.Context, logger logr.Logger, client client.Client, spec *cluster.Spec) (controller.Result, error)
}
CNIReconciler is an interface for reconciling CNI in the Tinkerbell cluster reconciler.
type IPValidator ¶
type IPValidator interface {
ValidateControlPlaneIP(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
}
IPValidator is an interface that defines methods to validate the control plane IP.
type Reconciler ¶
type Reconciler struct { *serverside.ObjectApplier // contains filtered or unexported fields }
Reconciler reconciles a Nutanix cluster.
func New ¶
func New(client client.Client, validator *nutanix.Validator, cniReconciler CNIReconciler, registry RemoteClientRegistry, ipValidator IPValidator) *Reconciler
New defines a new Nutanix reconciler.
func (*Reconciler) CheckControlPlaneReady ¶
func (r *Reconciler) CheckControlPlaneReady(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
CheckControlPlaneReady checks whether the control plane for an eks-a cluster is ready or not. Requeues with the appropriate wait times whenever the cluster is not ready yet.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile(ctx context.Context, log logr.Logger, c *anywherev1.Cluster) (controller.Result, error)
Reconcile reconciles the cluster to the desired state.
func (*Reconciler) ReconcileCNI ¶
func (r *Reconciler) ReconcileCNI(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
ReconcileCNI reconciles the CNI to the desired state.
func (*Reconciler) ReconcileControlPlane ¶
func (r *Reconciler) ReconcileControlPlane(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
ReconcileControlPlane reconciles the control plane to the desired state.
func (*Reconciler) ReconcileWorkers ¶
func (r *Reconciler) ReconcileWorkers(ctx context.Context, log logr.Logger, spec *cluster.Spec) (controller.Result, error)
ReconcileWorkers reconciles the workers to the desired state.
func (*Reconciler) ValidateClusterSpec ¶
func (r *Reconciler) ValidateClusterSpec(ctx context.Context, log logr.Logger, clusterSpec *cluster.Spec) (controller.Result, error)
ValidateClusterSpec performs additional, context-aware validations on the cluster spec.