command

package
v1.5.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 34 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, options WaitOptions) error

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

Types

type WaitOptions

type WaitOptions struct {
	// ExtendTimeoutForBaremetal extends the initialization timeout for baremetal platforms.
	ExtendTimeoutForBaremetal bool
	// UserProvisionedDNSEnabled extends the initialization timeout for user-provisioned DNS.
	UserProvisionedDNSEnabled bool
	// VerifyFIPS verifies that FIPS mode is enabled on the cluster before completing.
	VerifyFIPS bool
}

WaitOptions contains options for WaitForInstallComplete.

Jump to

Keyboard shortcuts

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