Documentation ¶
Index ¶
- func GetValidatedResults(kind string, decoder *admission.Decoder, req admission.Request, ...) (*validator.Result, kube.GenericResource, error)
- func NewMutateWebhook(mgr manager.Manager, c config.Configuration)
- func NewValidateWebhook(mgr manager.Manager, c config.Configuration)
- type Mutator
- type Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidatedResults ¶
func GetValidatedResults(kind string, decoder *admission.Decoder, req admission.Request, config config.Configuration) (*validator.Result, kube.GenericResource, error)
GetValidatedResults returns the validated results.
func NewMutateWebhook ¶
func NewMutateWebhook(mgr manager.Manager, c config.Configuration)
NewMutateWebhook creates a mutating admission webhook for the apiType.
func NewValidateWebhook ¶
func NewValidateWebhook(mgr manager.Manager, c config.Configuration)
NewValidateWebhook creates a validating admission webhook for the apiType.
Types ¶
type Mutator ¶
type Mutator struct { Client client.Client Config config.Configuration // contains filtered or unexported fields }
Mutator mutate k8s resources.
Click to show internal directories.
Click to hide internal directories.