mutating

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]admission.Handler{
		"mutating-pod-subnet-topology-spread": &MutatingPodHandler{},
	}
)

Functions

func RegisterPodMutatingWebhookFlags

func RegisterPodMutatingWebhookFlags(pflags *pflag.FlagSet)

func SelectPriorityPSTS

Select the highest priority and matching pSTS object label: pod labels to be mached pstsList: list of PodSubnetTopologySpread return: - nil: if no PodSubnetTopologySpread matched - psts: the highest priority PodSubnetTopologySpread object

Types

type MutatingPodHandler

type MutatingPodHandler struct {

	// Decoder decodes objects
	Decoder *admission.Decoder
	// contains filtered or unexported fields
}

func (*MutatingPodHandler) Handle

Handle handles admission requests.

func (*MutatingPodHandler) InjectCNIMode

func (h *MutatingPodHandler) InjectCNIMode(cniMode types.ContainerNetworkMode) error

func (*MutatingPodHandler) InjectCRDClient

func (h *MutatingPodHandler) InjectCRDClient(crdClient versioned.Interface) error

func (*MutatingPodHandler) InjectCloudClient

func (h *MutatingPodHandler) InjectCloudClient(bceClient cloud.Interface) error

func (*MutatingPodHandler) InjectDecoder

func (h *MutatingPodHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the PodCreateHandler

func (*MutatingPodHandler) InjectNetworkInformer

func (h *MutatingPodHandler) InjectNetworkInformer(networkInformer crdinformers.SharedInformerFactory) error

Jump to

Keyboard shortcuts

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