util

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Codecs provides access to encoding and decoding for the scheme.
	Codecs = serializer.NewCodecFactory(scheme)
)

Functions

func ARFail

func ARFail(err error) *admission.AdmissionResponse

ARFail is a helper function to create an AdmissionResponse with an embedded error

func ARPatch added in v1.1.0

func ARPatch(patch []byte) *admission.AdmissionResponse

ARPatch return admission response that contains a patch to mutate the object

func ARSuccess

func ARSuccess() *admission.AdmissionResponse

ARSuccess return allow to action

func CreateJsonPatch added in v1.1.0

func CreateJsonPatch(original, current runtime.Object) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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