Documentation ¶
Index ¶
- Constants
- Variables
- func CheckOperatorResources(ctx context.Context, clientset kubernetes.Interface)
- func GetInternalOrExternalClient() kubernetes.Interface
- func GetOperatorBaseImageCephVersion(context *clusterd.Context) (string, error)
- func GetOperatorImage(ctx context.Context, clientset kubernetes.Interface, containerName string) string
- func GetOperatorServiceAccount(ctx context.Context, 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)
Constants ¶
View Source
const (
RookEnvVarPrefix = "ROOK"
)
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "rook", Short: "Rook (rook.io) Kubernetes operator and user tools", Hidden: false, }
Functions ¶
func CheckOperatorResources ¶ added in v1.6.7
func CheckOperatorResources(ctx context.Context, clientset kubernetes.Interface)
func GetInternalOrExternalClient ¶ added in v1.11.6
func GetInternalOrExternalClient() kubernetes.Interface
GetInternalOrExternalClient will get a Kubernetes client interface from the KUBECONFIG variable if it is set, or from the operator pod environment otherwise.
func GetOperatorBaseImageCephVersion ¶ added in v1.4.0
GetOperatorBaseImageCephVersion returns the Ceph version of the operator image
func GetOperatorImage ¶ added in v1.1.0
func GetOperatorServiceAccount ¶ added in v1.1.0
func GetOperatorServiceAccount(ctx context.Context, clientset kubernetes.Interface) string
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 NewContext ¶ added in v1.1.0
NewContext creates and initializes a cluster context
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.
func TerminateOnError ¶ added in v1.1.0
TerminateOnError terminates if err is not nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.