Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
CompletedConfig same as Config, just to swap private object.
type Config ¶
type Config struct { // AnnotatorConfig holds configuration for a node annotator. AnnotatorConfig *annotatorconfig.AnnotatorConfiguration // LeaderElection holds configuration for leader election. LeaderElection *componentbaseconfig.LeaderElectionConfiguration // KubeInformerFactory gives access to kubernetes informers for the controller. KubeInformerFactory informers.SharedInformerFactory // KubeClient is the general kube client. KubeClient clientset.Interface // PromClient is used for getting metric data from Prometheus. PromClient prom.PromClient // Policy is a collection of scheduler policies. Policy *policy.DynamicSchedulerPolicy // EventRecorder is the event sink EventRecorder record.EventRecorder // LeaderElectionClient is the client used for leader election LeaderElectionClient *clientset.Clientset // HealthPort is server port used for health check HealthPort string }
Config is the main context object for crane scheduler controller.
func (*Config) Complete ¶
func (c *Config) Complete() *CompletedConfig
Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.
Click to show internal directories.
Click to hide internal directories.