Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutationHandler ¶
type MutationHandler interface { // HandleMutation handles validating webhook admission request // If there are no errors in validating rule we apply generation rules // patchedResource is the (resource + patches) after applying mutation rules HandleMutation(context.Context, admissionv1.AdmissionRequest, []kyvernov1.PolicyInterface, *engine.PolicyContext, time.Time, config.Configuration) ([]byte, []string, error) }
func NewMutationHandler ¶
func NewMutationHandler( log logr.Logger, engine engineapi.Engine, eventGen event.Interface, nsLister corev1listers.NamespaceLister, metrics metrics.MetricsConfigManager, ) MutationHandler
Click to show internal directories.
Click to hide internal directories.