preflight

package
v1.5.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunInitMasterChecks

func RunInitMasterChecks(cfg *kubeadmapi.MasterConfiguration) error

func RunJoinNodeChecks

func RunJoinNodeChecks() error

func RunResetCheck

func RunResetCheck() error

Types

type DirAvailableCheck

type DirAvailableCheck struct {
	// contains filtered or unexported fields
}

DirAvailableCheck checks if the given directory either does not exist, or is empty.

func (DirAvailableCheck) Check

func (dac DirAvailableCheck) Check() (warnings, errors []error)

type InPathCheck

type InPathCheck struct {
	// contains filtered or unexported fields
}

InPathChecks checks if the given executable is present in the path.

func (InPathCheck) Check

func (ipc InPathCheck) Check() (warnings, errors []error)

type IsRootCheck

type IsRootCheck struct {
	// contains filtered or unexported fields
}

IsRootCheck verifies user is root

func (IsRootCheck) Check

func (irc IsRootCheck) Check() (warnings, errors []error)

type PortOpenCheck

type PortOpenCheck struct {
	// contains filtered or unexported fields
}

PortOpenCheck ensures the given port is available for use.

func (PortOpenCheck) Check

func (poc PortOpenCheck) Check() (warnings, errors []error)

type PreFlightCheck

type PreFlightCheck interface {
	Check() (warnings, errors []error)
}

PreFlightCheck validates the state of the system to ensure kubeadm will be successful as often as possilble.

type PreFlightError

type PreFlightError struct {
	Msg string
}

func (*PreFlightError) Error

func (e *PreFlightError) Error() string

type ServiceCheck

type ServiceCheck struct {
	Service string
}

ServiceCheck verifies that the given service is enabled and active. If we do not detect a supported init system however, all checks are skipped and a warning is returned.

func (ServiceCheck) Check

func (sc ServiceCheck) Check() (warnings, errors []error)

Jump to

Keyboard shortcuts

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