Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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"`
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"`
Probes struct {
BindAddress string `mapstructure:"probes-bind-address"`
} `mapstructure:",squash"`
LeaderElection struct {
Enabled bool `mapstructure:"leader-election-enabled"`
} `mapstructure:",squash"`
Sentry struct {
Dsn string `mapstructure:"sentry-dsn"`
} `mapstructure:",squash"`
}
Click to show internal directories.
Click to hide internal directories.