workload

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuntimeImageAnnotationPrefix = "runtime-image.brewlet.sh/"
	RuntimeGenerationPrefix      = "runtime-generation.brewlet.sh/"
)

Variables

This section is empty.

Functions

func DistinctRuntimeIDs

func DistinctRuntimeIDs(selections []Selection) []string

func ParseSelections

func ParseSelections(annotations map[string]string) (map[string]string, error)

ParseSelections validates every selection annotation, including reservations for containers that have not yet been added to the Pod.

func RuntimeGenerationAnnotation

func RuntimeGenerationAnnotation(id string) string

func RuntimeIDForContainer

func RuntimeIDForContainer(annotations map[string]string, containerName string) (string, bool, error)

RuntimeIDForContainer resolves the exact selection for a container. A missing selection is ordinary OCI; malformed selections are errors, never fallback.

Types

type Selection

type Selection struct {
	ContainerName string
	RuntimeID     string
}

func ActiveSelections

func ActiveSelections(annotations map[string]string, declaredNames []string) ([]Selection, error)

ActiveSelections returns only selections for declared container names.

Jump to

Keyboard shortcuts

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