Documentation
¶
Index ¶
- Constants
- Variables
- func CheckIfAgentCommand(assetStore asset.Store)
- func LogClusterOperatorConditions(ctx context.Context, config *rest.Config) error
- func LogTroubleshootingLink()
- func NewFileHookWithNewlineTruncate(file io.Writer, level logrus.Level, formatter logrus.Formatter) *fileHook
- func SetupFileHook(baseDir string) func()
- func WaitForInstallComplete(ctx context.Context, config *rest.Config, options WaitOptions) error
- type WaitOptions
Constants ¶
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 ¶
var ( // RootOpts holds the log directory and log level configuration. RootOpts struct { Dir string LogLevel string } )
var SkipPasswordPrintFlag bool
SkipPasswordPrintFlag when true means do not print the generated user password.
Functions ¶
func CheckIfAgentCommand ¶
CheckIfAgentCommand logs a warning if an agent configuration was detected and the current command is not an agent wait-for command.
func LogClusterOperatorConditions ¶
LogClusterOperatorConditions logs the current status of cluster operators that are still becoming Available.
func LogTroubleshootingLink ¶
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 ¶
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.