Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindConfigToFlags ¶ added in v0.145.0
func CommonFlags ¶ added in v0.144.0
func LoadConfigFromContext ¶
Types ¶
type CommonServiceConfig ¶ added in v0.144.0
type CommonServiceConfig struct { DebugLabelValue string `mapstructure:"debug-label-value"` MaxConcurrentReconciles int `mapstructure:"max-concurrent-reconciles"` Environment string `mapstructure:"environment"` Region string `mapstructure:"region"` Kubeconfig string `mapstructure:"kubeconfig"` IsLocal bool `mapstructure:"is-local"` Image struct { Name string `mapstructure:"image-name"` Tag string `mapstructure:"image-tag"` } `mapstructure:",squash"` Log struct { Level string `mapstructure:"log-level"` NoJson bool `mapstructure:"no-json"` } `mapstructure:",squash"` ShutdownTimeout time.Duration `mapstructure:"shutdown-timeout"` Metrics struct { BindAddress string `mapstructure:"metrics-bind-address"` Secure bool `mapstructure:"metrics-secure"` } `mapstructure:",squash"` EnableHTTP2 bool `mapstructure:"enable-http2"` HealthProbeBindAddress string `mapstructure:"health-probe-bind-address"` LeaderElection struct { Enabled bool `mapstructure:"leader-elect"` } `mapstructure:",squash"` Sentry struct { Dsn string `mapstructure:"sentry-dsn"` } `mapstructure:",squash"` }
func NewDefaultConfig ¶ added in v0.145.0
Click to show internal directories.
Click to hide internal directories.