util

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package util includes the utility functions for testing webhooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomDefaultValidateTest

func CustomDefaultValidateTest(ctx context.Context, obj runtime.Object, webhook CustomDefaulterValidator) func(*testing.T)

CustomDefaultValidateTest 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 CustomDefaulterValidator

type CustomDefaulterValidator interface {
	webhook.CustomDefaulter
	webhook.CustomValidator
}

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

Jump to

Keyboard shortcuts

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