webhook

package
v1.7.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateProject

func ValidateProject(
	ctx context.Context,
	kubeClient client.Client,
	obj client.Object,
) error

func ValidatePromotionSteps added in v1.6.1

func ValidatePromotionSteps(
	f *field.Path,
	steps []kargoapi.PromotionStep,
) field.ErrorList

Types

type Config

type Config struct {
	// RawControlplaneUserRegex is a regular expression to match the username in
	// admission request to distinguish if the request is coming from controlplane.
	RawControlplaneUserRegex string         `envconfig:"CONTROLPLANE_USER_REGEX"`
	ControlplaneUserRegex    *regexp.Regexp `ignored:"true"`
}

func ConfigFromEnv

func ConfigFromEnv() Config

type IsRequestFromKargoControlplaneFn

type IsRequestFromKargoControlplaneFn func(admission.Request) bool

func IsRequestFromKargoControlplane

func IsRequestFromKargoControlplane(regex *regexp.Regexp) IsRequestFromKargoControlplaneFn

Jump to

Keyboard shortcuts

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