config

package
v0.0.0-...-432d548 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 3 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 {
	// Generic holds configuration for a generic controller-manager
	Generic GenericControllerManagerConfiguration

	// the rest config for the master
	Kubeconfig *restclient.Config

	// LabelSelector and Namespace defines the scope of controller
	LabelSelector string
	WriteLabels   string
	Namespace     string
	Cluster       string
	Name          string

	// Current numbers
	ConcurrentSyncs int32

	//ExtendConfig define the exetrnal config file path for controllers
	ExtendConfig string

	// delay duration before controllers start after became to leader
	DelayStart metav1.Duration

	// KmonAdress kmon service host
	// default=localhost
	KmonAddress string

	MemObjs                []string
	MemFsURL               string
	MemFsBackupURL         string
	MemSyncPeriodMs        int32
	MemTimeoutMs           int32
	MemBatcherHashKeyNum   uint32
	MemBatcherGroupKey     string
	MemStorePoolWorkerSize int
	MemStorePoolQueueSize  int
}

Config is the main context object for the controller manager.

func (*Config) TweakListOptionsFunc

func (c *Config) TweakListOptionsFunc(options *v1.ListOptions)

TweakListOptionsFunc used to defines the scope of controller

type GenericControllerManagerConfiguration

type GenericControllerManagerConfiguration struct {
	// port is the port that the controller-manager's http service runs on.
	Port int32
	// address is the IP address to serve on (set to 0.0.0.0 for all interfaces).
	Address string
	// minResyncPeriod is the resync period in reflectors; will be random between
	// minResyncPeriod and 2*minResyncPeriod.
	MinResyncPeriod metav1.Duration
	// ClientConnection specifies the kubeconfig file and client connection
	// settings for the proxy server to use when communicating with the apiserver.
	ClientConnection config.ClientConnectionConfiguration
	// leaderElection defines the configuration of leader election client.
	LeaderElection config.LeaderElectionConfiguration
	// Controllers is the list of controllers to enable or disable
	// '*' means "all enabled by default controllers"
	// 'foo' means "enable 'foo'"
	// '-foo' means "disable 'foo'"
	// first item for a particular name wins
	Controllers []string
}

GenericControllerManagerConfiguration holds configuration for a generic controller-manager

Jump to

Keyboard shortcuts

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