reconciler

package
v0.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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) ReconcileWorkerNodes

func (r *Reconciler) ReconcileWorkerNodes(ctx context.Context, log logr.Logger, eksCluster *anywherev1.Cluster) (controller.Result, error)

ReconcileWorkerNodes reconciles the worker nodes 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.

type RemoteClientRegistry

type RemoteClientRegistry interface {
	GetClient(ctx context.Context, cluster client.ObjectKey) (client.Client, error)
}

RemoteClientRegistry is an interface that defines methods for remote clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL