Documentation
¶
Index ¶
- Variables
- func CommandWithDefaultUsageTemplate(kpApp *kingpin.Application, name, help string) *kingpin.CmdClause
- func DefineDebugFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause)
- func DefineDebugUnixSocketFlag(cmd *kingpin.CmdClause)
- func DefineJqFlags(cmd *kingpin.CmdClause)
- func DefineKubeClientFlags(cmd *kingpin.CmdClause)
- func DefineLoggingFlags(cmd *kingpin.CmdClause)
- func DefineStartCommandFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause)
- func OperatorUsageTemplate(appName string) string
- func SetupLogging()
Constants ¶
This section is empty.
Variables ¶
View Source
var AppDescription = "Run your custom cluster-wide scripts in reaction to Kubernetes events or on schedule."
View Source
var AppName = "shell-operator"
View Source
var DebugKeepTmpFiles = "no"
View Source
var DebugUnixSocket = "/var/run/shell-operator/debug.socket"
View Source
var HookMetricsListenPort = ""
View Source
var HooksDir = ""
View Source
var JqLibraryPath = ""
View Source
var KubeClientBurst int
View Source
var KubeClientBurstDefault = "10" // DefaultBurst from k8s.io/client-go/rest/config.go
View Source
var KubeClientQps float32
View Source
var KubeClientQpsDefault = "5" // DefaultQPS from k8s.io/client-go/rest/config.go
View Source
var KubeConfig = ""
View Source
var KubeContext = ""
View Source
var KubeServer = ""
View Source
var ListenAddress = "0.0.0.0"
View Source
var ListenPort = "9115"
View Source
var LogLevel = "info"
Use info level with timestamps and a text output by default
View Source
var LogNoTime = false
View Source
var LogType = "text"
View Source
var PrometheusMetricsPrefix = "shell_operator_"
View Source
var TempDir = "/tmp/shell-operator"
View Source
var Version = "dev"
Functions ¶
func CommandWithDefaultUsageTemplate ¶
func CommandWithDefaultUsageTemplate(kpApp *kingpin.Application, name, help string) *kingpin.CmdClause
CommandWithDefaultUsageTemplate is used to workaround an absence of per-command usage templates
func DefineDebugFlags ¶
func DefineDebugFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause)
SetupDebugSettings init global flags for debug
func DefineDebugUnixSocketFlag ¶
func DefineDebugUnixSocketFlag(cmd *kingpin.CmdClause)
func DefineJqFlags ¶
func DefineJqFlags(cmd *kingpin.CmdClause)
DefineJqFlags set flag for jq library
func DefineKubeClientFlags ¶
func DefineKubeClientFlags(cmd *kingpin.CmdClause)
func DefineLoggingFlags ¶
func DefineLoggingFlags(cmd *kingpin.CmdClause)
SetupLoggingSettings init global flags for logging
func DefineStartCommandFlags ¶
func DefineStartCommandFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause)
DefineStartCommandFlags set shell-operator flags for cmd
func OperatorUsageTemplate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.