Documentation
¶
Index ¶
- func ConvertResource(raw []byte, group, version, kind, namespace string) (unstructured.Unstructured, error)
- func ExtractResources(newRaw []byte, request admissionv1.AdmissionRequest) (unstructured.Unstructured, unstructured.Unstructured, error)
- func GetCleanupPolicies(request admissionv1.AdmissionRequest) (kyvernov2alpha1.CleanupPolicyInterface, kyvernov2alpha1.CleanupPolicyInterface, ...)
- func GetPartialObjectMetadatas(request admissionv1.AdmissionRequest) (*metav1.PartialObjectMetadata, *metav1.PartialObjectMetadata, error)
- func GetPolicies(request admissionv1.AdmissionRequest) (kyvernov1.PolicyInterface, kyvernov1.PolicyInterface, error)
- func GetPolicy(request admissionv1.AdmissionRequest) (kyvernov1.PolicyInterface, error)
- func GetPolicyExceptions(request admissionv1.AdmissionRequest) (*kyvernov2beta1.PolicyException, *kyvernov2beta1.PolicyException, error)
- func GetResourceName(request admissionv1.AdmissionRequest) string
- func IsDryRun(request admissionv1.AdmissionRequest) bool
- func MutationResponse(uid types.UID, patch []byte, warnings ...string) admissionv1.AdmissionResponse
- func Response(uid types.UID, err error, warnings ...string) admissionv1.AdmissionResponse
- func ResponseSuccess(uid types.UID, warnings ...string) admissionv1.AdmissionResponse
- func UnmarshalCleanupPolicy(kind string, raw []byte) (kyvernov2alpha1.CleanupPolicyInterface, error)
- func UnmarshalPartialObjectMetadata(raw []byte) (*metav1.PartialObjectMetadata, error)
- func UnmarshalPolicy(kind string, raw []byte) (kyvernov1.PolicyInterface, error)
- func UnmarshalPolicyException(raw []byte) (*kyvernov2beta1.PolicyException, error)
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
func ExtractResources(newRaw []byte, request admissionv1.AdmissionRequest) (unstructured.Unstructured, unstructured.Unstructured, error)
ExtractResources extracts the new and old resource as unstructured
func GetCleanupPolicies ¶ added in v1.9.0
func GetCleanupPolicies(request admissionv1.AdmissionRequest) (kyvernov2alpha1.CleanupPolicyInterface, kyvernov2alpha1.CleanupPolicyInterface, error)
func GetPartialObjectMetadatas ¶ added in v1.10.5
func GetPartialObjectMetadatas(request admissionv1.AdmissionRequest) (*metav1.PartialObjectMetadata, *metav1.PartialObjectMetadata, error)
func GetPolicies ¶
func GetPolicies(request admissionv1.AdmissionRequest) (kyvernov1.PolicyInterface, kyvernov1.PolicyInterface, error)
func GetPolicy ¶
func GetPolicy(request admissionv1.AdmissionRequest) (kyvernov1.PolicyInterface, error)
func GetPolicyExceptions ¶ added in v1.9.0
func GetPolicyExceptions(request admissionv1.AdmissionRequest) (*kyvernov2beta1.PolicyException, *kyvernov2beta1.PolicyException, error)
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 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.
Click to show internal directories.
Click to hide internal directories.