Documentation ¶
Index ¶
- Variables
- type InitLocker
- type KubeadmConfigReconciler
- func (r *KubeadmConfigReconciler) ClusterToKubeadmConfigs(o handler.MapObject) []ctrl.Request
- func (r *KubeadmConfigReconciler) MachinePoolToBootstrapMapFunc(o handler.MapObject) []ctrl.Request
- func (r *KubeadmConfigReconciler) MachineToBootstrapMapFunc(o handler.MapObject) []ctrl.Request
- func (r *KubeadmConfigReconciler) Reconcile(req ctrl.Request) (_ ctrl.Result, rerr error)
- func (r *KubeadmConfigReconciler) SetupWithManager(mgr ctrl.Manager, option controller.Options) error
- type Scope
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultTokenTTL is the amount of time a bootstrap token (and therefore a KubeadmConfig) will be valid DefaultTokenTTL = 15 * time.Minute )
Functions ¶
This section is empty.
Types ¶
type InitLocker ¶
type InitLocker interface { Lock(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) bool Unlock(ctx context.Context, cluster *clusterv1.Cluster) bool }
InitLocker is a lock that is used around kubeadm init
type KubeadmConfigReconciler ¶
type KubeadmConfigReconciler struct { Client client.Client Log logr.Logger KubeadmInitLock InitLocker // contains filtered or unexported fields }
KubeadmConfigReconciler reconciles a KubeadmConfig object
func (*KubeadmConfigReconciler) ClusterToKubeadmConfigs ¶
func (r *KubeadmConfigReconciler) ClusterToKubeadmConfigs(o handler.MapObject) []ctrl.Request
ClusterToKubeadmConfigs is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of KubeadmConfigs.
func (*KubeadmConfigReconciler) MachinePoolToBootstrapMapFunc ¶
func (r *KubeadmConfigReconciler) MachinePoolToBootstrapMapFunc(o handler.MapObject) []ctrl.Request
MachinePoolToBootstrapMapFunc is a handler.ToRequestsFunc to be used to enqueue request for reconciliation of KubeadmConfig.
func (*KubeadmConfigReconciler) MachineToBootstrapMapFunc ¶
func (r *KubeadmConfigReconciler) MachineToBootstrapMapFunc(o handler.MapObject) []ctrl.Request
MachineToBootstrapMapFunc is a handler.ToRequestsFunc to be used to enqeue request for reconciliation of KubeadmConfig.
func (*KubeadmConfigReconciler) SetupWithManager ¶
func (r *KubeadmConfigReconciler) SetupWithManager(mgr ctrl.Manager, option controller.Options) error
SetupWithManager sets up the reconciler with the Manager.
type Scope ¶
type Scope struct { logr.Logger Config *bootstrapv1.KubeadmConfig ConfigOwner *bsutil.ConfigOwner Cluster *clusterv1.Cluster }
Click to show internal directories.
Click to hide internal directories.