defaulting

package
v0.3.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultValidateTest

func DefaultValidateTest(object DefaultingValidator) func(*testing.T)

DefaultValidateTest returns a new testing function to be used in tests to make sure defaulting webhooks also pass validation tests on create, update and delete.

Types

type DefaultingValidator

type DefaultingValidator interface {
	runtime.Object
	Default()
	ValidateCreate() error
	ValidateUpdate(old runtime.Object) error
	ValidateDelete() error
}

DefaultingValidator interface is for objects that define both defaulting and validating webhooks.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL