Documentation ¶
Index ¶
Constants ¶
View Source
const (
RookEnvVarPrefix = "ROOK"
)
Variables ¶
View Source
var (
Cfg = &Config{}
)
View Source
var RootCmd = &cobra.Command{
Use: "rook",
}
Functions ¶
func GetClientset ¶ added in v0.8.0
func GetClientset() (kubernetes.Interface, apiextensionsclient.Interface, rookclient.Interface, error)
GetClientset create the k8s client
func LogStartupInfo ¶ added in v0.8.0
LogStartupInfo log the version number, arguments, and all final flag values (environment variable overrides have already been taken into account)
func SetLogLevel ¶ added in v0.8.0
func SetLogLevel()
SetLogLevel set log level based on provided log option.
func TerminateFatal ¶ added in v0.8.0
func TerminateFatal(reason error)
TerminateFatal terminates the process with an exit code of 1 and writes the given reason to stderr and // the termination log file.
Types ¶
Click to show internal directories.
Click to hide internal directories.