Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerOption ¶
type ServerOption struct {
Master string
Kubeconfig string
EnableLeaderElection bool
LockObjectNamespace string
KubeAPIBurst int
KubeAPIQPS float32
PrintVersion bool
// WorkerThreads is the number of threads syncing job operations
// concurrently. Larger number = faster job updating, but more CPU load.
WorkerThreads uint32
SchedulerName string
// HealthzBindAddress is the IP address and port for the health check server to serve on,
// defaulting to 127.0.0.1:11252
HealthzBindAddress string
}
ServerOption is the main context object for the controller manager.
func NewServerOption ¶
func NewServerOption() *ServerOption
NewServerOption creates a new CMServer with a default config.
func (*ServerOption) AddFlags ¶
func (s *ServerOption) AddFlags(fs *pflag.FlagSet)
AddFlags adds flags for a specific CMServer to the specified FlagSet
func (*ServerOption) CheckOptionOrDie ¶
func (s *ServerOption) CheckOptionOrDie() error
CheckOptionOrDie checks the LockObjectNamespace
Click to show internal directories.
Click to hide internal directories.