mutation

package
v0.0.0-...-81d30be Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatchResponse

func PatchResponse(original runtime.RawExtension, newObj runtime.Object) admission.Response

PatchResponse is a bridge for the webhooks using the old controller-runtime v0.1.x admission.PatchResponse() function.

Types

type ControlPlaneMutator

type ControlPlaneMutator struct {
	// contains filtered or unexported fields
}

func NewControlPlaneMutator

func NewControlPlaneMutator(namespaceFilter webhookcommon.NamespaceFilter) *ControlPlaneMutator

func (*ControlPlaneMutator) Handle

func (*ControlPlaneMutator) InjectClient

func (v *ControlPlaneMutator) InjectClient(c client.Client) error

InjectClient injects the client.

func (*ControlPlaneMutator) InjectDecoder

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

InjectDecoder injects the decoder.

type MemberRollMutator

type MemberRollMutator struct {
	// contains filtered or unexported fields
}

func NewMemberRollMutator

func NewMemberRollMutator(namespaceFilter webhookcommon.NamespaceFilter) *MemberRollMutator

func (*MemberRollMutator) Handle

func (*MemberRollMutator) InjectClient

func (v *MemberRollMutator) InjectClient(c client.Client) error

InjectClient injects the client.

func (*MemberRollMutator) InjectDecoder

func (v *MemberRollMutator) 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