webhook

package
v0.0.0-...-3c3457e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodAffiniytMutate

func NewPodAffiniytMutate(c client.Client, d *admission.Decoder, log logr.Logger) admission.Handler

Types

type PodAntiAffiniytMutate

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

PodAntiAffiniytMutate mutate Pods

func (*PodAntiAffiniytMutate) AddPodAntiAffinity

func (v *PodAntiAffiniytMutate) AddPodAntiAffinity(pod *corev1.Pod)

func (*PodAntiAffiniytMutate) Handle

func (*PodAntiAffiniytMutate) InjectDecoder

func (v *PodAntiAffiniytMutate) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

func (*PodAntiAffiniytMutate) InjectLogger

func (m *PodAntiAffiniytMutate) InjectLogger(l logr.Logger) error

Jump to

Keyboard shortcuts

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