config

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// api server bind address
	BindAddr string
	// monitor metric path
	MetricPath string

	// Datastore config
	Datastore datastore.Config

	// LeaderConfig for leader election
	LeaderConfig leaderConfig

	// AddonCacheTime is how long between two cache operations
	AddonCacheTime time.Duration

	// DisableStatisticCronJob close the calculate system info cronJob
	DisableStatisticCronJob bool

	// KubeBurst the burst of kube client
	KubeBurst int

	// KubeQPS the QPS of kube client
	KubeQPS float64

	// PprofAddr the address for pprof to use while exporting profiling results.
	PprofAddr string

	// WorkflowVersion is the version of workflow
	WorkflowVersion string
}

Config config for server

func NewConfig added in v1.7.0

func NewConfig() *Config

NewConfig returns a Config struct with default values

func (*Config) AddFlags added in v1.7.0

func (s *Config) AddFlags(fs *pflag.FlagSet, c *Config)

AddFlags adds flags to the specified FlagSet

func (*Config) Validate added in v1.7.0

func (s *Config) Validate() []error

Validate validate generic server run options

Jump to

Keyboard shortcuts

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