config

package
v1.8.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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

	PluginConfig PluginConfig
}

Config config for server

func NewConfig

func NewConfig() *Config

NewConfig returns a Config struct with default values

func (*Config) AddFlags

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

AddFlags adds flags to the specified FlagSet

func (*Config) Validate

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

Validate validate generic server run options

type PluginConfig

type PluginConfig struct {
	CorePluginPath   string
	CustomPluginPath []string
}

Jump to

Keyboard shortcuts

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