command

package
v1.4.21-pre Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitCodeInstallConfigError is used when there is a install-config error.
	ExitCodeInstallConfigError = iota + 3
	// ExitCodeInfrastructureFailed is used there is a infrastructure error.
	ExitCodeInfrastructureFailed
	// ExitCodeBootstrapFailed is used when bootstrap failed.
	ExitCodeBootstrapFailed
	// ExitCodeInstallFailed is used when cluster installation failed.
	ExitCodeInstallFailed
	// ExitCodeOperatorStabilityFailed is used when operator stability check failed.
	ExitCodeOperatorStabilityFailed
	// ExitCodeInterrupt is used when the interrupt signal was received.
	ExitCodeInterrupt
)

Variables

View Source
var (
	// RootOpts holds the log directory and log level configuration.
	RootOpts struct {
		Dir      string
		LogLevel string
	}
)
View Source
var SkipPasswordPrintFlag bool

SkipPasswordPrintFlag when true means do not print the generated user password.

Functions

func CheckIfAgentCommand

func CheckIfAgentCommand(assetStore asset.Store)

CheckIfAgentCommand logs a warning if an agent configuration was detected and the current command is not an agent wait-for command.

func LogClusterOperatorConditions

func LogClusterOperatorConditions(ctx context.Context, config *rest.Config) error

LogClusterOperatorConditions logs the current status of cluster operators that are still becoming Available.

func LogTroubleshootingLink()

LogTroubleshootingLink displays a link for additional troubleshooting help when installation is not successful.

func NewFileHookWithNewlineTruncate

func NewFileHookWithNewlineTruncate(file io.Writer, level logrus.Level, formatter logrus.Formatter) *fileHook

NewFileHookWithNewlineTruncate returns a new FileHook with truncated new lines.

func SetupFileHook

func SetupFileHook(baseDir string) func()

SetupFileHook creates the base log directory and configures logrus options.

func WaitForInstallComplete

func WaitForInstallComplete(ctx context.Context, config *rest.Config, assetstore asset.Store) error

WaitForInstallComplete waits for cluster to complete installation, checks for operator stability and logs cluster information when successful.

Types

This section is empty.

Jump to

Keyboard shortcuts

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