Documentation ¶
Overview ¶
Package cluster contains Cluster API controller for the TinkerbellCluster CR.
Index ¶
Constants ¶
View Source
const ( // ClusterNameLabel is used to mark Hardware as assigned controlplane machine. ClusterNameLabel = "v1alpha1.tinkerbell.org/clusterName" // ClusterNamespaceLabel is used to mark in which Namespace hardware is used. ClusterNamespaceLabel = "v1alpha1.tinkerbell.org/clusterNamespace" // KubernetesAPIPort is a port used by Tinkerbell clusters for Kubernetes API. KubernetesAPIPort = 6443 )
Variables ¶
View Source
var ( // ErrClusterNotReady is returned when trying to reconcile prior to the Cluster resource being ready. ErrClusterNotReady = fmt.Errorf("cluster resource not ready") // ErrControlPlaneEndpointNotSet is returned when trying to reconcile when the ControlPlane Endpoint is not defined. ErrControlPlaneEndpointNotSet = fmt.Errorf("controlplane endpoint is not set") // ErrConfigurationNil is the error returned when TinkerbellMachineReconciler or TinkerbellClusterReconciler is nil. ErrConfigurationNil = fmt.Errorf("configuration is nil") // ErrMissingClient is the error returned when TinkerbellMachineReconciler or TinkerbellClusterReconciler do // not have a Client configured. ErrMissingClient = fmt.Errorf("client is nil") )
Functions ¶
This section is empty.
Types ¶
type TinkerbellClusterReconciler ¶
TinkerbellClusterReconciler implements Reconciler interface.
func (*TinkerbellClusterReconciler) Reconcile ¶
func (tcr *TinkerbellClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile ensures state of Tinkerbell clusters.
func (*TinkerbellClusterReconciler) SetupWithManager ¶
func (tcr *TinkerbellClusterReconciler) SetupWithManager( ctx context.Context, mgr ctrl.Manager, options controller.Options, ) error
SetupWithManager configures reconciler with a given manager.
Click to show internal directories.
Click to hide internal directories.