webhooks

package
v0.0.0-...-b320a0e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHealthCheck

func StartHealthCheck(ctx context.Context, reader client.Reader, namespace string, deploymentName string, interval metav1.Duration)

StartHealthCheck will start a go routine periodically checking the health of a specified deployment The result of the checks is available to the testRunValidator only

Types

type TestRunCustomValidator

type TestRunCustomValidator struct {
	Log logr.Logger
}

func (*TestRunCustomValidator) ValidateCreate

func (v *TestRunCustomValidator) ValidateCreate(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

func (*TestRunCustomValidator) ValidateDelete

func (v *TestRunCustomValidator) ValidateDelete(ctx context.Context, obj runtime.Object) (warnings admission.Warnings, err error)

func (*TestRunCustomValidator) ValidateUpdate

func (v *TestRunCustomValidator) ValidateUpdate(ctx context.Context, oldObj, newObj runtime.Object) (warnings admission.Warnings, err error)

Jump to

Keyboard shortcuts

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