cluster-api: sigs.k8s.io/cluster-api/bootstrap/kubeadm/controllers Index | Files

package controllers

import "sigs.k8s.io/cluster-api/bootstrap/kubeadm/controllers"

Index

Package Files

kubeadmconfig_controller.go token.go

Variables

var (
    // DefaultTokenTTL is the amount of time a bootstrap token (and therefore a KubeadmConfig) will be valid
    DefaultTokenTTL = 15 * time.Minute
)

type InitLocker Uses

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 Uses

type KubeadmConfigReconciler struct {
    Client          client.Client
    KubeadmInitLock InitLocker
    // contains filtered or unexported fields
}

KubeadmConfigReconciler reconciles a KubeadmConfig object

func (*KubeadmConfigReconciler) ClusterToKubeadmConfigs Uses

func (r *KubeadmConfigReconciler) ClusterToKubeadmConfigs(o client.Object) []ctrl.Request

ClusterToKubeadmConfigs is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of KubeadmConfigs.

func (*KubeadmConfigReconciler) MachinePoolToBootstrapMapFunc Uses

func (r *KubeadmConfigReconciler) MachinePoolToBootstrapMapFunc(o client.Object) []ctrl.Request

MachinePoolToBootstrapMapFunc is a handler.ToRequestsFunc to be used to enqueue request for reconciliation of KubeadmConfig.

func (*KubeadmConfigReconciler) MachineToBootstrapMapFunc Uses

func (r *KubeadmConfigReconciler) MachineToBootstrapMapFunc(o client.Object) []ctrl.Request

MachineToBootstrapMapFunc is a handler.ToRequestsFunc to be used to enqeue request for reconciliation of KubeadmConfig.

func (*KubeadmConfigReconciler) Reconcile Uses

func (r *KubeadmConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)

Reconcile handles KubeadmConfig events.

func (*KubeadmConfigReconciler) SetupWithManager Uses

func (r *KubeadmConfigReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, option controller.Options) error

SetupWithManager sets up the reconciler with the Manager.

type Scope Uses

type Scope struct {
    logr.Logger
    Config      *bootstrapv1.KubeadmConfig
    ConfigOwner *bsutil.ConfigOwner
    Cluster     *clusterv1.Cluster
}

Package controllers imports 35 packages (graph) and is imported by 2 packages. Updated 2020-10-29. Refresh now. Tools for package owners.