mutating

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]common.AdmissionHandler{
		common.WebhookSchedulePodPath: &FluidMutatingHandler{},
	}
)

Functions

This section is empty.

Types

type FluidMutatingHandler

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

FluidMutatingHandler mutates a pod and has implemented admission.DecoderInjector

func (*FluidMutatingHandler) Handle

Handle is the mutating logic of pod

func (*FluidMutatingHandler) MutatePod

func (a *FluidMutatingHandler) MutatePod(pod *corev1.Pod) (err error)

MutatePod will call all plugins to get total prefer info

func (*FluidMutatingHandler) Setup

func (a *FluidMutatingHandler) Setup(client client.Client, decoder *admission.Decoder)

Jump to

Keyboard shortcuts

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