Documentation ¶
Index ¶
- type Option
- func WithDisableSchedulerEstimatorInPullMode(disableSchedulerEstimatorInPullMode bool) Option
- func WithEnableEmptyWorkloadPropagation(enableEmptyWorkloadPropagation bool) Option
- func WithEnableSchedulerEstimator(enableSchedulerEstimator bool) Option
- func WithEnableSchedulerPlugin(plugins []string) Option
- func WithOutOfTreeRegistry(registry runtime.Registry) Option
- func WithSchedulerEstimatorPort(schedulerEstimatorPort int) Option
- func WithSchedulerEstimatorTimeout(schedulerEstimatorTimeout metav1.Duration) Option
- type ScheduleType
- type Scheduler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v1.2.0
type Option func(*schedulerOptions)
Option configures a Scheduler
func WithDisableSchedulerEstimatorInPullMode ¶ added in v1.3.0
WithDisableSchedulerEstimatorInPullMode sets the disableSchedulerEstimatorInPullMode for scheduler
func WithEnableEmptyWorkloadPropagation ¶ added in v1.3.0
WithEnableEmptyWorkloadPropagation sets the enablePropagateEmptyWorkLoad for scheduler
func WithEnableSchedulerEstimator ¶ added in v1.2.0
WithEnableSchedulerEstimator sets the enableSchedulerEstimator for scheduler
func WithEnableSchedulerPlugin ¶ added in v1.3.0
WithEnableSchedulerPlugin sets the scheduler-plugin for scheduler
func WithOutOfTreeRegistry ¶ added in v1.3.0
WithOutOfTreeRegistry sets the registry for out-of-tree plugins. Those plugins will be appended to the default in-tree registry.
func WithSchedulerEstimatorPort ¶ added in v1.2.0
WithSchedulerEstimatorPort sets the schedulerEstimatorPort for scheduler
func WithSchedulerEstimatorTimeout ¶ added in v1.2.0
WithSchedulerEstimatorTimeout sets the schedulerEstimatorTimeout for scheduler
type ScheduleType ¶ added in v0.4.0
type ScheduleType string
ScheduleType defines the schedule type of a binding object should be performed.
const ( // ReconcileSchedule means the binding object associated policy has been changed. ReconcileSchedule ScheduleType = "ReconcileSchedule" // ScaleSchedule means the replicas of binding object has been changed. ScaleSchedule ScheduleType = "ScaleSchedule" )
type Scheduler ¶
type Scheduler struct { DynamicClient dynamic.Interface KarmadaClient karmadaclientset.Interface KubeClient kubernetes.Interface Algorithm core.ScheduleAlgorithm // contains filtered or unexported fields }
Scheduler is the scheduler schema, which is used to schedule a specific resource to specific clusters
func NewScheduler ¶
func NewScheduler(dynamicClient dynamic.Interface, karmadaClient karmadaclientset.Interface, kubeClient kubernetes.Interface, opts ...Option) (*Scheduler, error)
NewScheduler instantiates a scheduler