# Functions
AnnotationHasValue checks whether an API object has annotations and these annotations contain the specified key with the specified value.
AnnotationValue retrieves the string representation of the value of an annotation specified by key.
CreatePatch creates a JSON patch from the given mutatedObj and its JSON serialized original structure.
Main is a simple helper method which takes an io.Closer and blocks until either SIGTERM oder SIGINT are received and the calls Close() in the io.Closer() and exits with (0).
New creates and starts a new InjectServer.
NewOptions creates a new instance of an Options struct with sane values set.
ToAdmissionResponse is a simple method to create a v1beta1.AdmissionResponse struct with an error message set.
# Variables
Schemas, codecs etc.
(https://github.com/kubernetes/kubernetes/issues/57982).
Schemas, codecs etc.
Schemas, codecs etc.
Schemas, codecs etc.
No description provided by the author
WrongResourceError can be used to indicate that this webhook doesn't support this resource- This might happen due to wrong configuration etc.
# Structs
InjectServer is an opinionated implementation of a service running within kubernetes as admission webhook.
Options are used to configure the InjectServer.
# Type aliases
IsAdmittedFunc is used for admitting only webhooks to determine wether a resource can be admitted.
MutateFunc is the definition for functions doing the mutation of a resource.
NeedsMutationFunc can be used to run more complex checks before MutateFunc is called.