Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is the API.
func (*API) GetJoinDataKube ¶
func (a *API) GetJoinDataKube(_ context.Context, _ *vmproto.GetJoinDataKubeRequest) (*vmproto.GetJoinDataKubeResponse, error)
GetJoinDataKube returns the join data for the kubernetes cluster. This function will be used by all master nodes except the first one and all worker nodes.
func (*API) InitFirstMaster ¶
func (a *API) InitFirstMaster(in *vmproto.InitFirstMasterRequest, srv vmproto.API_InitFirstMasterServer) error
InitFirstMaster executes the kubeadm init command on the first master node. The subsequent master nodes will join the cluster automatically.
type Core ¶
type Core interface { ConnectToKubernetes() error GetJoinToken(time.Duration) (*kubeadm.BootstrapTokenDiscovery, error) GetControlPlaneCertificatesAndKeys() (map[string][]byte, error) IsInReadyState() bool IsReadyForInit() bool SetJoiningCluster() SetInitialized() }
Core interface contains functions to access the state Core data.
Click to show internal directories.
Click to hide internal directories.