setup

package
v0.31.9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prepare

func Prepare(ctx context.Context) error

Prepare resolves the config source and parses the config files.

Does NOT run the interactive prompt — that's the dedicated job of `kubeaid-cli config generate`. The earlier silent-prompt fallback here meant `cluster bootstrap` could surprise an operator with a TUI when they expected a parse failure, and the split also makes the command boundaries cleaner: `config generate` writes, `cluster bootstrap` reads.

func RelocateLogFile added in v0.31.8

func RelocateLogFile(ctx context.Context, directory string)

RelocateLogFile moves the current run's log file into directory, creating it first. The file was opened before the run knew which cluster it concerns; the open descriptor survives the rename, so logging simply continues into the moved file. Best-effort: a failure leaves the log where it is, logged at ERROR so it reaches the terminal — WARN goes only to the log file, the very artifact that failed to move.

Types

This section is empty.

Jump to

Keyboard shortcuts

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