admission

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 11 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 GetPartialObjectMetadatas added in v1.10.5

func GetResourceName

func GetResourceName(request admissionv1.AdmissionRequest) string

func IsDryRun added in v1.10.0

func IsDryRun(request admissionv1.AdmissionRequest) bool

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 UnmarshalGlobalContextEntry added in v1.12.0

func UnmarshalGlobalContextEntry(raw []byte) (*kyvernov2alpha1.GlobalContextEntry, error)

func UnmarshalPartialObjectMetadata added in v1.10.5

func UnmarshalPartialObjectMetadata(raw []byte) (*metav1.PartialObjectMetadata, error)

func UnmarshalPolicy

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

func UnmarshalPolicyException added in v1.9.0

func UnmarshalPolicyException(raw []byte) (*kyvernov2beta1.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