validation

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2025 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExampleAPIURL = "https://ENVIRONMENTID.live.dynatrace.com/api"
)

Variables

This section is empty.

Functions

func IsInvalidAPIURL added in v1.7.0

func IsInvalidAPIURL(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string

func IsMutatedAPIURL added in v1.7.0

func IsMutatedAPIURL(_ context.Context, _ *Validator, oldDk *dynakube.DynaKube, newDk *dynakube.DynaKube) string

func IsThirdGenAPIUrl

func IsThirdGenAPIUrl(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string

func New

func New(apiReader client.Reader, cfg *rest.Config) admission.CustomValidator

func NoAPIURL added in v1.7.0

func NoAPIURL(_ context.Context, _ *Validator, dk *dynakube.DynaKube) string

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func (*Validator) ValidateCreate

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

func (*Validator) ValidateDelete

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

func (*Validator) ValidateUpdate

func (v *Validator) 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