cmd

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)

nolint: gochecknoglobals

ConfigSet provides configs. nolint: gochecknoglobals

Functions

func BindEnv

func BindEnv(key, env string)

func NewKubernetesConfig

func NewKubernetesConfig(conf Config) k8s.Config

func NewLogConfig

func NewLogConfig(conf Config) log.Config

func RunManager

func RunManager(mgr manager.Manager, cleanup func(), err error) error

func SetupCommand

func SetupCommand(cmd *cobra.Command) *cobra.Command

Types

type Config

type Config struct {
	Log        log.Config        `mapstructure:"log"`
	Kubernetes k8s.Config        `mapstructure:"kubernetes"`
	Metrics    MetricsConfig     `mapstructure:"metrics"`
	Health     HealthProbeConfig `mapstructure:"health"`
}

type HealthProbeConfig added in v1.0.0

type HealthProbeConfig struct {
	Address string `mapstructure:"address"`
}

type MetricsConfig added in v1.0.0

type MetricsConfig struct {
	Address string `mapstructure:"address"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL