Documentation
¶
Overview ¶
Package defaulting includes the utility functions for testing webhooks.
Package defaulting implements defaulting webhook functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultValidateTest ¶
func DefaultValidateTest(ctx context.Context, obj runtime.Object, webhook DefaulterValidator) func(*testing.T)
DefaultValidateTest returns a new testing function to be used in tests to make sure custom defaulting webhooks also pass validation tests on create, update and delete.
Types ¶
type DefaulterValidator ¶
type DefaulterValidator interface {
webhook.CustomDefaulter
webhook.CustomValidator
}
DefaulterValidator interface is for objects that define both custom defaulting and custom validating webhooks.
Click to show internal directories.
Click to hide internal directories.