Documentation ¶
Overview ¶
Package util contains top-level utility commands which are neither storage backends nor associated with a particular storage backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdReporterCmd = &cobra.Command{ Use: "cmd-reporter", Short: "Run a given command to completion, and store the result in a ConfigMap.", Long: `Run a given command to completion, and store the Stdout, Stderr, and return code results of the command in a ConfigMap. If the ConfigMap already exists, the Stdout, Stderr, and return code data which may be present in the ConfigMap will be overwritten. If cmd-reporter succeeds in running the command to completion, no error is reported, even if the command's return code is nonzero (failure). Run will terminate if the command could not be run for any reason or if there was an error storing the command results into the ConfigMap. An application label is applied to the ConfigMap. Run will also terminate if the label already exists and has a different application's name; this may indicate that it is not safe for cmd-reporter to edit the ConfigMap.`, Args: cobra.NoArgs, Run: runCmdReporter, Hidden: true, }
CmdReporterCmd defines a top-level utility command which runs a given command and stores the results in a ConfigMap. Operators are advised to use operator/k8sutil.CmdReporter, which wraps this functionality neatly rather than calling this with a custom setup.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.