Documentation ¶
Index ¶
- type Nodelet
- func (n *Nodelet) IsK8sRunning() bool
- func (n *Nodelet) ListPhases() [][]string
- func (n *Nodelet) NumPhases() int
- func (n *Nodelet) PhasesStatus() [][]string
- func (n *Nodelet) Reconcile(ctx context.Context) error
- func (n *Nodelet) Run(ctx context.Context) error
- func (n *Nodelet) SkipGenCertsPhase()
- func (n *Nodelet) Start(ctx context.Context, startPhaseIndex int) (lastPhase int, err error)
- func (n *Nodelet) StartSinglePhase(ctx context.Context, idx int) error
- func (n *Nodelet) Status(ctx context.Context)
- func (n *Nodelet) Stop(ctx context.Context, stopPhaseIndex int, force bool) error
- func (n *Nodelet) StopSinglePhase(ctx context.Context, idx int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nodelet ¶
type Nodelet struct {
// contains filtered or unexported fields
}
func CreateNodeletFromConfig ¶
func (*Nodelet) IsK8sRunning ¶
IsK8sRunning return the current state of k8s stack as recorded in nodelet
func (*Nodelet) ListPhases ¶
ListPhases returns a list of strings with details of all phases to be displayed as a table
func (*Nodelet) NumPhases ¶
NumPhases returns the number of phases needed to configure the node as a k8s node
func (*Nodelet) PhasesStatus ¶
PhasesStatus returns a list of strings with details of phases with their current status to be displayed as a table
func (*Nodelet) SkipGenCertsPhase ¶
func (n *Nodelet) SkipGenCertsPhase()
SkipGenCertsPhase sets the required flags to make Stop operation skip the gen_certs phase by satisfying FailedStatusCheck != idx condition
func (*Nodelet) Start ¶
Start attempts to start the Kubernetes service on the host, running through the phases, starting from startPhaseIndex.
If successful, the lastPhase will be the len(phases), the error will be nil. If failed, the lastPhase will be the phase at which the start failed, and error will be non-nil.
func (*Nodelet) StartSinglePhase ¶
StartSinglePhase executes the "start" function of the provided phase only