Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateProject ¶
func ValidatePromotionSteps ¶
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 ¶
func IsRequestFromKargoControlplane ¶
func IsRequestFromKargoControlplane(regex *regexp.Regexp) IsRequestFromKargoControlplaneFn
Click to show internal directories.
Click to hide internal directories.