rook

package
v0.0.0-...-3f1f3ec Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

func LogStartupInfo(cmdFlags *pflag.FlagSet)

LogStartupInfo log the version number, arguments, and all final flag values (environment variable overrides have already been taken into account)

func NewContext

func NewContext() *clusterd.Context

NewContext creates and initializes a cluster context

func SetLogLevel

func SetLogLevel()

SetLogLevel set log level based on provided log option.

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

func TerminateOnError(err error, msg string)

TerminateOnError terminates if err is not nil

Types

type Config

type Config struct {
	LogLevel capnslog.LogLevel
}

Jump to

Keyboard shortcuts

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