package defaults

import "k8s.io/kubernetes/pkg/scheduler/algorithmprovider/defaults"

Index

Constants

const (
	// ClusterAutoscalerProvider defines the default autoscaler provider
	ClusterAutoscalerProvider = "ClusterAutoscalerProvider"
)

Functions

func ApplyFeatureGates

func ApplyFeatureGates() (restore func())

ApplyFeatureGates applies algorithm by feature gates. The returned function is used to restore the state of registered predicates/priorities when this function is called, and should be called in tests which may modify the value of a feature gate temporarily. TODO(Huang-Wei): refactor this function to have a clean way to disable/enable plugins.

Source Files

defaults.go register_predicates.go register_priorities.go

Version
v1.18.0-alpha.1
Published
Dec 18, 2019
Platform
darwin/amd64
Imports
9 packages
Last checked
7 minutes ago

Tools for package owners.