mutating_webhook

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RUNTIME_CLASS_NAME_DEFAULT       = "kata-remote"
	POD_VM_ANNOTATION_INSTANCE_TYPE  = "kata.peerpods.io/instance_type"
	POD_VM_INSTANCE_TYPE_DEFAULT     = "t2.small"
	POD_VM_EXTENDED_RESOURCE_DEFAULT = "kata.peerpods.io/vm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PodMutator

type PodMutator struct {
	Client client.Client
	// contains filtered or unexported fields
}

podMutator mutates Pods

func (*PodMutator) Handle

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

func (*PodMutator) InjectDecoder

func (a *PodMutator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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