mutating_webhook

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RUNTIME_CLASS_NAME_DEFAULT       = "kata-remote"
	POD_VM_EXTENDED_RESOURCE_DEFAULT = "kata.peerpods.io/vm"
	PEERPODS_CPU_ANNOTATION          = "io.katacontainers.config.hypervisor.default_vcpus"
	PEERPODS_MEMORY_ANNOTATION       = "io.katacontainers.config.hypervisor.default_memory"
	GPU_RESOURCE_NAME                = "nvidia.com/gpu"
	PEERPODS_GPU_ANNOTATION          = "io.katacontainers.config.hypervisor.default_gpus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PodMutator

type PodMutator struct {
	Client  client.Client
	Decoder *admission.Decoder
}

podMutator mutates Pods

func (*PodMutator) Handle

podMutator adds peer-pod extended resource to the pod spec add removes all other resource specs

Jump to

Keyboard shortcuts

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