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, assetstore asset.Store) error
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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.