nodelet

package
v0.0.0-...-a954c3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 CreateNodeletFromConfig(ctx context.Context, cfg *config.Config) (*Nodelet, error)

func (*Nodelet) IsK8sRunning

func (n *Nodelet) IsK8sRunning() bool

IsK8sRunning return the current state of k8s stack as recorded in nodelet

func (*Nodelet) ListPhases

func (n *Nodelet) ListPhases() [][]string

ListPhases returns a list of strings with details of all phases to be displayed as a table

func (*Nodelet) NumPhases

func (n *Nodelet) NumPhases() int

NumPhases returns the number of phases needed to configure the node as a k8s node

func (*Nodelet) PhasesStatus

func (n *Nodelet) PhasesStatus() [][]string

PhasesStatus returns a list of strings with details of phases with their current status to be displayed as a table

func (*Nodelet) Reconcile

func (n *Nodelet) Reconcile(ctx context.Context) error

func (*Nodelet) Run

func (n *Nodelet) Run(ctx context.Context) error

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

func (n *Nodelet) Start(ctx context.Context, startPhaseIndex int) (lastPhase int, err error)

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

func (n *Nodelet) StartSinglePhase(ctx context.Context, idx int) error

StartSinglePhase executes the "start" function of the provided phase only

func (*Nodelet) Status

func (n *Nodelet) Status(ctx context.Context)

func (*Nodelet) Stop

func (n *Nodelet) Stop(ctx context.Context, stopPhaseIndex int, force bool) error

Stop attempts to stop the Kubernetes service on the host, running through the phases in reverse, starting from stopPhaseIndex.

func (*Nodelet) StopSinglePhase

func (n *Nodelet) StopSinglePhase(ctx context.Context, idx int) error

StopSinglePhase executes the "stop" function of the provided phase only

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL