config

package
v0.0.0-...-c2c0533 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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