package
0.11.0
Repository: https://github.com/slok/kubewebhook.git
Documentation: pkg.go.dev

# Functions

GetK8sObjType returns the type (not the pointer type) of a kubernetes object.
GroupVersionResourceToString returns a string representation.
NewDynamicObjectCreator returns a object creator that knows how to return objects from raw JSON data without the need of knowing the type.
NewK8sObj returns a new object of a Kubernetes type based on the type.
NewStaticObjectCreator doesn't need to infer the type, it will create a new schema and create a new object with the same type from the received object type.
ToAdmissionErrorResponse transforms an error into a admission response with error.

# Interfaces

ObjectCreator knows how to create objects from Raw JSON data into specific types.