Documentation ¶
Index ¶
Constants ¶
View Source
const ( // owner: @zwzhang0107 @saintube // alpha: v0.3 // beta: v1.1 // // GroupIdentity set pod cpu group identity(bvt) according to QoS. GroupIdentity featuregate.Feature = "GroupIdentity" // owner: @saintube @zwzhang0107 // alpha: v0.3 // beta: v1.1 // // CPUSetAllocator set container cpuset according to allocate result from koord-scheduler for LSR/LS pods. CPUSetAllocator featuregate.Feature = "CPUSetAllocator" // owner: @ZYecho @jasonliu747 // alpha: v0.3 // beta: v1.1 // // GPUEnvInject injects gpu allocated env info according to allocate result from koord-scheduler. GPUEnvInject featuregate.Feature = "GPUEnvInject" // owner: @saintube @zwzhang0107 // alpha: v1.1 // // BatchResource set request and limits of cpu and memory on cgroup file. BatchResource featuregate.Feature = "BatchResource" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RuntimeHooksNetwork string RuntimeHooksAddr string RuntimeHooksFailurePolicy string RuntimeHookConfigFilePath string RuntimeHookHostEndpoint string RuntimeHookDisableStages []string FeatureGates map[string]bool // Deprecated }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type HookPlugin ¶
type HookPlugin interface {
Register()
}
type RuntimeHook ¶
type RuntimeHook interface {
Run(stopCh <-chan struct{}) error
}
func NewRuntimeHook ¶
func NewRuntimeHook(si statesinformer.StatesInformer, cfg *Config) (RuntimeHook, error)
Click to show internal directories.
Click to hide internal directories.