config

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 6 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

	// WorkflowVersion is the version of workflow
	WorkflowVersion string

	PluginConfig PluginConfig

	DexServerURL string

	// ExitOnLostLeader will exit the process if this server lost the leader election, set this to true for debugging
	ExitOnLostLeader bool
}

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
}

PluginConfig the plugin directory config

Jump to

Keyboard shortcuts

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