Documentation ¶
Index ¶
- Constants
- Variables
- func GetOperatorImage(clientset kubernetes.Interface, containerName string) string
- func GetOperatorServiceAccount(clientset kubernetes.Interface) string
- func LogStartupInfo(cmdFlags *pflag.FlagSet)
- func NewContext() *clusterd.Context
- func SetLogLevel()
- func TerminateFatal(reason error)
- func TerminateOnError(err error, msg string)
- type Config
Constants ¶
View Source
const (
RookEnvVarPrefix = "ROOK"
)
Variables ¶
View Source
var (
Cfg = &Config{}
)
View Source
var RootCmd = &cobra.Command{
Use: "rook",
}
Functions ¶
func GetOperatorImage ¶
func GetOperatorImage(clientset kubernetes.Interface, containerName string) string
func GetOperatorServiceAccount ¶
func GetOperatorServiceAccount(clientset kubernetes.Interface) string
func LogStartupInfo ¶
LogStartupInfo log the version number, arguments, and all final flag values (environment variable overrides have already been taken into account)
func NewContext ¶
NewContext creates and initializes a cluster context
func TerminateFatal ¶
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.
func TerminateOnError ¶
TerminateOnError terminates if err is not nil
Types ¶
Click to show internal directories.
Click to hide internal directories.