runtimehooks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

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

func (*Config) InitFlags

func (c *Config) InitFlags(fs *flag.FlagSet)

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)

Directories

Path Synopsis
gpu

Jump to

Keyboard shortcuts

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