configuration

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Redis RedisConfiguration
	K8S   K8SConfiguration
	flagger.Log
	flagger.Prom
	PprofAddr string `flagger.name:"pprof-addr" flagger.usage:"pprof listener address (default: don't run pprof)"`
	NodeName  string `flagger.name:"node-name" flagger.usage:"node name"`
	LED       string `flagger.name:"led-path" flagger.usage:"path name to the sysfs directory for the LED"`
	Leader    LeaderConfiguration
}

func GetConfiguration

func GetConfiguration() Configuration

type K8SConfiguration

type K8SConfiguration struct {
	LockName  string `flagger.usage:"lock name to acquire lock"`
	Namespace string `flagger.usage:"lock namespace to acquire lock"`
}

type LeaderConfiguration

type LeaderConfiguration struct {
	NodeName  string `flagger.usage:"leader node name (if empty, k8s nodeName election will be used"`
	Scheduler SchedulerConfiguration
	Rotation  time.Duration `flagger.usage:"rotation interval"`
}

type RedisConfiguration

type RedisConfiguration struct {
	Addr     string `flagger.usage:"redis server address (e.g.localhost:6379)"`
	Username string `flagger.usage:"redis user name"`
	Password string `flagger.usage:"redis password"`
}

type SchedulerConfiguration

type SchedulerConfiguration struct {
	Mode string `flagger.usage:"LED pattern mode"`
}

Jump to

Keyboard shortcuts

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