Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecryptFunc ¶ added in v1.7.0
type DecryptFunc func(c *ServerOption) error
DecryptFunc is custom function to parse ca file
type ServerOption ¶
type ServerOption struct { KubeClientOptions kube.ClientOptions CertFile string KeyFile string CaCertFile string CertData []byte KeyData []byte CaCertData []byte SchedulerNames []string SchedulerConf string SchedulePeriod time.Duration // leaderElection defines the configuration of leader election. LeaderElection config.LeaderElectionConfiguration // Deprecated: use ResourceNamespace instead. LockObjectNamespace string DefaultQueue string PrintVersion bool EnableMetrics bool ListenAddress string EnablePriorityClass bool EnableCSIStorage bool // vc-scheduler will load (not activate) custom plugins which are in this directory PluginsDir string EnableHealthz bool // HealthzBindAddress is the IP address and port for the health check server to serve on // defaulting to :11251 HealthzBindAddress string // Parameters for scheduling tuning: the number of feasible nodes to find and score MinNodesToFind int32 MinPercentageOfNodesToFind int32 PercentageOfNodesToFind int32 NodeSelector []string CacheDumpFileDir string EnableCacheDumper bool NodeWorkerThreads uint32 // IgnoredCSIProvisioners contains a list of provisioners, and pod request pvc with these provisioners will // not be counted in pod pvc resource request and node.Allocatable, because the spec.drivers of csinode resource // is always null, these provisioners usually are host path csi controllers like rancher.io/local-path and hostpath.csi.k8s.io. IgnoredCSIProvisioners []string }
ServerOption is the main context object for the controller manager.
var ServerOpts *ServerOption
ServerOpts server options.
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 check leader election flag when LeaderElection is enabled.
func (*ServerOption) ParseCAFiles ¶ added in v1.7.0
func (s *ServerOption) ParseCAFiles(decryptFunc DecryptFunc) error
ParseCAFiles parse ca file by decryptFunc
func (*ServerOption) RegisterOptions ¶
func (s *ServerOption) RegisterOptions()
RegisterOptions registers options.
Click to show internal directories.
Click to hide internal directories.