import "sigs.k8s.io/cluster-api/bootstrap/kubeadm/internal/locking"
type ControlPlaneInitMutex struct {
// contains filtered or unexported fields
}
ControlPlaneInitMutex uses a ConfigMap to synchronize cluster initialization.
NewControlPlaneInitMutex returns a lock that can be held by a control plane node before init.
func (c *ControlPlaneInitMutex) Lock(ctx context.Context, cluster *clusterv1.Cluster, machine *clusterv1.Machine) bool
Lock allows a control plane node to be the first and only node to run kubeadm init
Unlock releases the lock
Package locking imports 10 packages (graph) and is imported by 2 packages. Updated 2020-12-29. Refresh now. Tools for package owners.