runtimehooks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupIdentity   featuregate.Feature = "GroupIdentity"
	CPUSetAllocator featuregate.Feature = "CPUSetAllocator"
	GPUEnvInject    featuregate.Feature = "GPUEnvInject"
)

Variables

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
}

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