mutating_webhook

package
v0.9.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 10 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          = "kata.peerpods.io.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