admission

package
v1.9.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertResource added in v1.9.0

func ConvertResource(raw []byte, group, version, kind, namespace string) (unstructured.Unstructured, error)

ConvertResource converts raw bytes to an unstructured object

func ExtractResources added in v1.9.0

ExtractResources extracts the new and old resource as unstructured

func GetResourceName

func GetResourceName(request *admissionv1.AdmissionRequest) string

func MutationResponse added in v1.8.2

func MutationResponse(uid types.UID, patch []byte, warnings ...string) *admissionv1.AdmissionResponse

func Response

func Response(uid types.UID, err error, warnings ...string) *admissionv1.AdmissionResponse

func ResponseSuccess

func ResponseSuccess(uid types.UID, warnings ...string) *admissionv1.AdmissionResponse

func UnmarshalCleanupPolicy added in v1.9.0

func UnmarshalCleanupPolicy(kind string, raw []byte) (kyvernov2alpha1.CleanupPolicyInterface, error)

func UnmarshalPolicy

func UnmarshalPolicy(kind string, raw []byte) (kyvernov1.PolicyInterface, error)

func UnmarshalPolicyException added in v1.9.0

func UnmarshalPolicyException(raw []byte) (*kyvernov2alpha1.PolicyException, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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