features

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PodAutoscalerController        = "pod-autoscaler-controller"
	DistributedInferenceController = "distributed-inference-controller"
	ModelAdapterController         = "model-adapter-controller"
	ModelRouteController           = "model-route-controller"
	KVCacheController              = "kv-cache-controller"
	// there's no need to register internal controllers like roleset, just use top-level controller name
	StormServiceController = "stormservice-controller"
)

Variables

View Source
var (
	// EnabledControllers is the map of controllers to enable or disable
	// '*' means "all enabled by default controllers"
	// 'foo' means "enable 'foo'"
	// '-foo' means "disable 'foo'"
	// first item for a particular name wins
	EnabledControllers = make(map[string]bool)

	ValidControllers = []string{
		PodAutoscalerController, DistributedInferenceController, ModelAdapterController, ModelRouteController, KVCacheController,
		StormServiceController,
	}
)

Functions

func EnableAllControllers

func EnableAllControllers()

EnableAllControllers is used to enable all known controllers.

func InitControllers

func InitControllers(controllerList string)

InitControllers initializes the map of enabled controllers based on a comma-separated list.

func IsControllerEnabled

func IsControllerEnabled(name string) bool

IsControllerEnabled checks if a controller is enabled.

func ValidateControllers

func ValidateControllers(controllerList string) error

ValidateControllers checks the list of controllers for any invalid entries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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