radixvalidators

package
v1.47.5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 27 Imported by: 3

Documentation

Index

Constants

View Source
const (

	// MaxReplica Max number of replicas a deployment is allowed to have
	MaxReplica = 64
)

Variables

View Source
var (
	ErrMissingPrivateImageHubUsername                                      = errors.New("missing private image hub username")
	ErrEnvForDNSAppAliasNotDefined                                         = errors.New("env for dns app alias not defined")
	ErrComponentForDNSAppAliasNotDefined                                   = errors.New("component for dns app alias not defined")
	ErrExternalAliasCannotBeEmpty                                          = errors.New("external alias cannot be empty")
	ErrEnvForDNSExternalAliasNotDefined                                    = errors.New("env for dns external alias not defined")
	ErrComponentForDNSExternalAliasNotDefined                              = errors.New("component for dns external alias not defined")
	ErrComponentForDNSExternalAliasIsNotMarkedAsPublic                     = errors.New("component for dns external alias is not marked as public")
	ErrEnvironmentReferencedByComponentDoesNotExist                        = errors.New("environment referenced by component does not exist")
	ErrInvalidPortNameLength                                               = errors.New("invalid port name length")
	ErrPortSpecificationCannotBeEmptyForComponent                          = errors.New("port specification cannot be empty for component")
	ErrPortNameIsRequiredForPublicComponent                                = errors.New("port name is required for public component")
	ErrMonitoringPortNameIsNotFoundComponent                               = errors.New("monitoring port name is not found component")
	ErrMultipleMatchingPortNames                                           = errors.New("multiple matching port names")
	ErrSchedulerPortCannotBeEmptyForJob                                    = errors.New("scheduler port cannot be empty for job")
	ErrPayloadPathCannotBeEmptyForJob                                      = errors.New("payload path cannot be empty for job")
	ErrMemoryResourceRequirementFormat                                     = errors.New("memory resource requirement format")
	ErrCPUResourceRequirementFormat                                        = errors.New("cpu resource requirement format")
	ErrInvalidVerificationType                                             = errors.New("invalid verification")
	ErrResourceRequestOverLimit                                            = errors.New("resource request over limit")
	ErrInvalidResource                                                     = errors.New("invalid resource")
	ErrDuplicateExternalAlias                                              = errors.New("duplicate external alias")
	ErrInvalidBranchName                                                   = errors.New("invalid branch name")
	ErrMaxReplicasForHPANotSetOrZero                                       = errors.New("max replicas for hpanot set or zero")
	ErrMinReplicasGreaterThanMaxReplicas                                   = errors.New("min replicas greater than max replicas")
	ErrNoScalingResourceSet                                                = errors.New("no scaling resource set")
	ErrEmptyVolumeMountTypeOrDriverSection                                 = errors.New("empty volume mount type or driver section")
	ErrMultipleVolumeMountTypesDefined                                     = errors.New("multiple volume mount types defined")
	ErrEmptyVolumeMountNameOrPath                                          = errors.New("empty volume mount name or path")
	ErrEmptyVolumeMountStorage                                             = errors.New("empty volume mount storage")
	ErrEmptyBlobFuse2VolumeMountContainer                                  = errors.New("empty blob fuse 2 volume mount container")
	ErrUnsupportedBlobFuse2VolumeMountProtocol                             = errors.New("unsupported blob fuse 2 volume mount protocol")
	ErrDuplicatePathForVolumeMountType                                     = errors.New("duplicate path for volume mount")
	ErrDuplicateNameForVolumeMountType                                     = errors.New("duplicate name for volume mount")
	ErrunknownVolumeMountType                                              = errors.New("unknown volume mount type")
	ErrApplicationNameNotLowercase                                         = errors.New("application name not lowercase")
	ErrPublicImageComponentCannotHaveSourceOrDockerfileSet                 = errors.New("public image component cannot have source or dockerfile")
	ErrComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTag = errors.New("component with tag in environment config for environment requires dynamic")
	ErrComponentNameReservedSuffix                                         = errors.New("component name reserved suffix")
	ErrSecretNameConflictsWithEnvironmentVariable                          = errors.New("secret name conflicts with environment")
	ErrInvalidStringValueMaxLength                                         = errors.New("invalid string value max length")
	ErrInvalidStringValueMinLength                                         = errors.New("invalid string value min length")
	ErrResourceNameCannotBeEmpty                                           = errors.New("resource name cannot be empty")
	ErrInvalidUUID                                                         = errors.New("invalid")
	ErrInvalidEmail                                                        = errors.New("invalid email")
	ErrInvalidResourceName                                                 = errors.New("invalid resource name")
	ErrInvalidLowerCaseAlphaNumericDashResourceName                        = errors.New("invalid lower case alpha numeric dash resource name")
	ErrNoRegistrationExistsForApplication                                  = errors.New("no registration exists for application")
	ErrInvalidConfigBranchName                                             = errors.New("invalid config branch")
	ErrOauth                                                               = errors.New("oauth error")
	ErrOAuthClientIdEmpty                                                  = errors.Wrap(ErrOauth, "oauth client id empty")
	ErrOAuthProxyPrefixEmpty                                               = errors.Wrap(ErrOauth, "oauth proxy prefix empty")
	ErrOAuthProxyPrefixIsRoot                                              = errors.Wrap(ErrOauth, "oauth proxy prefix is root")
	ErrOAuthSessionStoreTypeInvalid                                        = errors.Wrap(ErrOauth, "oauth session store type invalid")
	ErrOAuthOidcJwksUrlEmpty                                               = errors.Wrap(ErrOauth, "oauth oidc jwks url empty")
	ErrOAuthLoginUrlEmpty                                                  = errors.Wrap(ErrOauth, "oauth login url empty")
	ErrOAuthRedeemUrlEmpty                                                 = errors.Wrap(ErrOauth, "oauth redeem url empty")
	ErrOAuthOidcEmpty                                                      = errors.Wrap(ErrOauth, "oauth oidc empty")
	ErrOAuthOidcSkipDiscoveryEmpty                                         = errors.Wrap(ErrOauth, "oauth oidc skip discovery empty")
	ErrOAuthRedisStoreEmpty                                                = errors.Wrap(ErrOauth, "oauth redis store empty")
	ErrOAuthRedisStoreConnectionURLEmpty                                   = errors.Wrap(ErrOauth, "oauth redis store connection urlempty")
	ErrOAuthCookieStoreMinimalIncorrectSetXAuthRequestHeaders              = errors.Wrap(ErrOauth, "oauth cookie store minimal incorrect set xauth request headers")
	ErrOAuthCookieStoreMinimalIncorrectSetAuthorizationHeader              = errors.Wrap(ErrOauth, "oauth cookie store minimal incorrect set authorization header")
	ErrOAuthCookieStoreMinimalIncorrectCookieRefreshInterval               = errors.Wrap(ErrOauth, "oauth cookie store minimal incorrect cookie refresh interval")
	ErrOAuthCookieEmpty                                                    = errors.Wrap(ErrOauth, "oauth cookie empty")
	ErrOAuthCookieNameEmpty                                                = errors.Wrap(ErrOauth, "oauth cookie name empty")
	ErrOAuthCookieSameSiteInvalid                                          = errors.Wrap(ErrOauth, "oauth cookie same site invalid")
	ErrOAuthCookieExpireInvalid                                            = errors.Wrap(ErrOauth, "oauth cookie expire invalid")
	ErrOAuthCookieRefreshInvalid                                           = errors.Wrap(ErrOauth, "oauth cookie refresh invalid")
	ErrOAuthCookieRefreshMustBeLessThanExpire                              = errors.New("oauth cookie refresh must be less than expire")
	ErrDuplicateComponentOrJobName                                         = errors.New("duplicate component or job name")
	ErrInvalidPortNumber                                                   = errors.New("invalid port number")
	ErrDuplicateSecretName                                                 = errors.New("duplicate secret")
	DuplicateEnvVarName                                                    = errors.New("duplicate env var")
	ErrDuplicateAlias                                                      = errors.New("duplicate")
	ErrDuplicateAzureKeyVaultName                                          = errors.New("duplicate azure key vault")
	ErrSecretRefEnvVarNameConflictsWithEnvironmentVariable                 = errors.New("secret ref env var name conflicts with environment")
	ErrNotValidCidr                                                        = errors.New("not valid cidr")
	ErrNotValidIPv4Cidr                                                    = errors.New("not valid ipv 4 cidr")
	ErrInvalidEgressPortProtocol                                           = errors.New("invalid egress port protocol")
	ErrWebhook                                                             = errors.New("get webhook")
	ErrInvalidWebhookUrl                                                   = errors.Wrap(ErrWebhook, "invalid webhook")
	ErrNotAllowedSchemeInWebhookUrl                                        = errors.Wrap(ErrWebhook, "not allowed scheme in webhook")
	ErrMissingPortInWebhookUrl                                             = errors.Wrap(ErrWebhook, "missing port in webhook")
	ErrOnlyAppComponentAllowedInWebhookUrl                                 = errors.Wrap(ErrWebhook, "only app component allowed in webhook")
	ErrInvalidPortInWebhookUrl                                             = errors.Wrap(ErrWebhook, "invalid port in webhook")
	ErrInvalidUseOfPublicPortInWebhookUrl                                  = errors.New("invalid use of public port in webhook")
	ErrMissingAzureIdentity                                                = errors.New("missing identity")
)
View Source
var (
	ErrInvalidRadixConfigFullName = stderrors.New("invalid file name for radixconfig. See https://www.radix.equinor.com/references/reference-radix-config/ for more information")
)

Functions

func AliasForDNSAliasNotDefinedError added in v1.47.0

func AliasForDNSAliasNotDefinedError() error

AliasForDNSAliasNotDefinedError Error when alias is not valid

func ApplicationNameNotLowercaseErrorWithMessage added in v1.44.1

func ApplicationNameNotLowercaseErrorWithMessage(appName string) error

ApplicationNameNotLowercaseErrorWithMessage Indicates that application name contains upper case letters

func CPUResourceRequirementFormatErrorWithMessage added in v1.44.1

func CPUResourceRequirementFormatErrorWithMessage(value string) error

CPUResourceRequirementFormatErrorWithMessage Invalid CPU resource requirement

func CanRadixApplicationBeInserted

func CanRadixApplicationBeInserted(radixClient radixclient.Interface, app *radixv1.RadixApplication, dnsAliasConfig *dnsalias.DNSConfig, additionalValidators ...RadixApplicationValidator) error

CanRadixApplicationBeInserted Checks if application config is valid. Returns a single error, if this is the case

func CanRadixDeploymentBeInserted

func CanRadixDeploymentBeInserted(deploy *radixv1.RadixDeployment) error

CanRadixDeploymentBeInserted Checks if RD is valid

func CanRadixRegistrationBeInserted

func CanRadixRegistrationBeInserted(client radixclient.Interface, radixRegistration *v1.RadixRegistration, additionalValidators ...RadixRegistrationValidator) error

CanRadixRegistrationBeInserted Validates RR

func CanRadixRegistrationBeUpdated

func CanRadixRegistrationBeUpdated(radixRegistration *v1.RadixRegistration, additionalValidators ...RadixRegistrationValidator) error

CanRadixRegistrationBeUpdated Validates update of RR

func ComponentForDNSAliasIsNotMarkedAsPublicError added in v1.47.0

func ComponentForDNSAliasIsNotMarkedAsPublicError(component string) error

ComponentForDNSAliasIsNotMarkedAsPublicError Component is not marked as public

func ComponentForDNSAliasNotDefinedError added in v1.47.0

func ComponentForDNSAliasNotDefinedError(component string) error

ComponentForDNSAliasNotDefinedError Error when component not defined

func ComponentForDNSAppAliasNotDefinedError

func ComponentForDNSAppAliasNotDefinedError(component string) error

ComponentForDNSAppAliasNotDefinedError Error when component not defined

func ComponentForDNSAppAliasNotDefinedErrorWithMessage added in v1.44.1

func ComponentForDNSAppAliasNotDefinedErrorWithMessage(component string) error

ComponentForDNSAppAliasNotDefinedErrorWithMessage Error when env not defined

func ComponentForDNSExternalAliasIsNotMarkedAsPublicErrorWithMessage added in v1.44.1

func ComponentForDNSExternalAliasIsNotMarkedAsPublicErrorWithMessage(component string) error

ComponentForDNSExternalAliasIsNotMarkedAsPublicErrorWithMessage Component is not marked as public

func ComponentForDNSExternalAliasNotDefinedErrorWithMessage added in v1.44.1

func ComponentForDNSExternalAliasNotDefinedErrorWithMessage(component string) error

ComponentForDNSExternalAliasNotDefinedErrorWithMessage Error when env not defined

func ComponentNameReservedSuffixErrorWithMessage added in v1.44.1

func ComponentNameReservedSuffixErrorWithMessage(componentName, componentType, suffix string) error

ComponentWithDynamicTagRequiresTagInEnvironmentConfigWithMessage Error if image is set with dynamic tag and tag is missing

func ComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTagWithMessage added in v1.44.1

func ComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTagWithMessage(componentName, environment string) error

ComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTagWithMessage If tag is set then the dynamic tag needs to be set on the image

func DuplicateAliasForDNSAliasError added in v1.47.0

func DuplicateAliasForDNSAliasError(alias string) error

DuplicateAliasForDNSAliasError Error when aliases are duplicate

func DuplicateComponentOrJobNameErrorWithMessage added in v1.44.1

func DuplicateComponentOrJobNameErrorWithMessage(duplicates []string) error

func DuplicateExternalAliasErrorWithMessage added in v1.44.1

func DuplicateExternalAliasErrorWithMessage() error

DuplicateExternalAliasErrorWithMessage Cannot have duplicate external alias

func EnvForDNSAliasNotDefinedError added in v1.47.0

func EnvForDNSAliasNotDefinedError(env string) error

EnvForDNSAliasNotDefinedError Error when env not defined

func EnvForDNSAppAliasNotDefinedErrorWithMessage added in v1.44.1

func EnvForDNSAppAliasNotDefinedErrorWithMessage(env string) error

EnvForDNSAppAliasNotDefinedErrorWithMessage Error when env not defined

func EnvForDNSExternalAliasNotDefinedErrorWithMessage added in v1.44.1

func EnvForDNSExternalAliasNotDefinedErrorWithMessage(env string) error

EnvForDNSExternalAliasNotDefinedErrorWithMessage Error when env not defined

func EnvironmentReferencedByComponentDoesNotExistErrorWithMessage added in v1.44.1

func EnvironmentReferencedByComponentDoesNotExistErrorWithMessage(environment, component string) error

EnvironmentReferencedByComponentDoesNotExistErrorWithMessage Environment does not exists

func GetRadixRegistrationBeInsertedWarnings added in v1.26.0

func GetRadixRegistrationBeInsertedWarnings(client radixclient.Interface, radixRegistration *v1.RadixRegistration) ([]string, error)

GetRadixRegistrationBeInsertedWarnings Get warnings for inserting RadixRegistration

func GetRadixRegistrationBeUpdatedWarnings added in v1.26.0

func GetRadixRegistrationBeUpdatedWarnings(client radixclient.Interface, radixRegistration *v1.RadixRegistration) ([]string, error)

GetRadixRegistrationBeUpdatedWarnings Get warnings for updating RadixRegistration

func GitTagsContainIllegalChars added in v1.24.2

func GitTagsContainIllegalChars(gitTags string) error

GitTagsContainIllegalChars Git tags contain illegal characters

func InvalidAppNameLengthErrorWithMessage added in v1.44.1

func InvalidAppNameLengthErrorWithMessage(value string) error

InvalidAppNameLengthErrorWithMessage Invalid app length

func InvalidBranchNameErrorWithMessage added in v1.44.1

func InvalidBranchNameErrorWithMessage(branch string) error

InvalidBranchNameErrorWithMessage Indicates that branch name is invalid

func InvalidConfigBranchNameWithMessage added in v1.44.1

func InvalidConfigBranchNameWithMessage(configBranch string) error

func InvalidEgressPortProtocolErrorWithMessage added in v1.44.1

func InvalidEgressPortProtocolErrorWithMessage(protocol string, validProtocols []string) error

func InvalidEmailErrorWithMessage added in v1.44.1

func InvalidEmailErrorWithMessage(resourceName, email string) error

InvalidEmailErrorWithMessage Invalid email

func InvalidLowerCaseAlphaNumericDashResourceNameErrorWithMessage added in v1.47.0

func InvalidLowerCaseAlphaNumericDashResourceNameErrorWithMessage(resourceName, value string) error

InvalidLowerCaseAlphaNumericDashResourceNameErrorWithMessage Invalid lower case alphanumeric, dash resource name error

func InvalidNumberOfReplicaError

func InvalidNumberOfReplicaError(replica int) error

InvalidNumberOfReplicaError Invalid number of replica

func InvalidPortInWebhookUrlWithMessage added in v1.44.1

func InvalidPortInWebhookUrlWithMessage(webhookUrlPort, targetComponentName, jobComponentName, environment string) error

func InvalidPortNameLengthErrorWithMessage added in v1.44.1

func InvalidPortNameLengthErrorWithMessage(value string) error

InvalidPortNameLengthErrorWithMessage Invalid resource length

func InvalidPortNumberErrorWithMessage added in v1.44.1

func InvalidPortNumberErrorWithMessage(value int32) error

InvalidPortNumberErrorWithMessage Invalid port number

func InvalidResourceErrorWithMessage added in v1.44.1

func InvalidResourceErrorWithMessage(name string) error

InvalidResourceErrorWithMessage Invalid resource type

func InvalidResourceNameErrorWithMessage added in v1.44.1

func InvalidResourceNameErrorWithMessage(resourceName, value string) error

InvalidResourceNameErrorWithMessage Invalid resource name

func InvalidStringValueMaxLengthErrorWithMessage added in v1.44.1

func InvalidStringValueMaxLengthErrorWithMessage(resourceName, value string, maxValue int) error

InvalidStringValueMaxLengthErrorWithMessage Invalid string value max length

func InvalidStringValueMinLengthErrorWithMessage added in v1.44.1

func InvalidStringValueMinLengthErrorWithMessage(resourceName, value string, minValue int) error

InvalidStringValueMinLengthErrorWithMessage Invalid string value min length

func InvalidUUIDErrorWithMessage added in v1.44.1

func InvalidUUIDErrorWithMessage(resourceName string, uuid string) error

InvalidUUIDErrorWithMessage Invalid UUID

func InvalidUseOfPublicPortInWebhookUrlWithMessage added in v1.44.1

func InvalidUseOfPublicPortInWebhookUrlWithMessage(webhookUrlPort, targetComponentName, jobComponentName, environment string) error

func InvalidVerificationTypeWithMessage added in v1.44.1

func InvalidVerificationTypeWithMessage(verification string) error

func InvalidWebhookUrlWithMessage added in v1.44.1

func InvalidWebhookUrlWithMessage(jobComponentName, environment string) error

func IsApplicationNameLowercase added in v1.5.16

func IsApplicationNameLowercase(appName string) (bool, error)

IsApplicationNameLowercase checks if the application name has any uppercase letters

func IsRadixApplicationValid added in v1.44.1

func IsRadixApplicationValid(app *radixv1.RadixApplication, additionalValidators ...RadixApplicationValidator) error

IsRadixApplicationValid Checks if application config is valid without server validation

func MaxReplicasForHPANotSetOrZeroErrorWithMessage added in v1.44.1

func MaxReplicasForHPANotSetOrZeroErrorWithMessage(component, environment string) error

MaxReplicasForHPANotSetOrZeroErrorWithMessage Indicates that minReplicas of horizontalScaling is not set or set to 0

func MemoryResourceRequirementFormatErrorWithMessage added in v1.44.1

func MemoryResourceRequirementFormatErrorWithMessage(value string) error

MemoryResourceRequirementFormatErrorWithMessage Invalid memory resource requirement error

func MinReplicasGreaterThanMaxReplicasErrorWithMessage added in v1.44.1

func MinReplicasGreaterThanMaxReplicasErrorWithMessage(component, environment string) error

MinReplicasGreaterThanMaxReplicasErrorWithMessage Indicates that minReplicas is greater than maxReplicas

func MissingAzureIdentityErrorWithMessage added in v1.44.1

func MissingAzureIdentityErrorWithMessage(keyVaultName, componentName string) error

func MissingPortInWebhookUrlWithMessage added in v1.44.1

func MissingPortInWebhookUrlWithMessage(jobComponentName, environment string) error

func MissingPrivateImageHubUsernameErrorWithMessage added in v1.44.1

func MissingPrivateImageHubUsernameErrorWithMessage(server string) error

MissingPrivateImageHubUsernameErrorWithMessage Error when username for private image hubs is not defined

func MonitoringPortNameIsNotFoundComponentErrorWithMessage added in v1.44.1

func MonitoringPortNameIsNotFoundComponentErrorWithMessage(portName, component string) error

MonitoringPortNameIsNotFoundComponentErrorWithMessage Monitoring port name not found on component

func MultipleMatchingPortNamesErrorWithMessage added in v1.44.1

func MultipleMatchingPortNamesErrorWithMessage(matchingPortName int, publicPortName, component string) error

MultipleMatchingPortNamesErrorWithMessage Multiple matching port names

func NoRegistrationExistsForApplicationErrorWithMessage added in v1.44.1

func NoRegistrationExistsForApplicationErrorWithMessage(appName string) error

NoRegistrationExistsForApplicationErrorWithMessage No registration exists

func NoScalingResourceSetErrorWithMessage added in v1.44.1

func NoScalingResourceSetErrorWithMessage(component, environment string) error

NoScalingResourceSetErrorWithMessage Indicates that no scaling resource is set for horizontal scaling

func NotAllowedSchemeInWebhookUrlWithMessage added in v1.44.1

func NotAllowedSchemeInWebhookUrlWithMessage(schema, jobComponentName, environment string) error

func NotValidCidrErrorWithMessage added in v1.44.1

func NotValidCidrErrorWithMessage(s string) error

func NotValidIPv4CidrErrorWithMessage added in v1.44.1

func NotValidIPv4CidrErrorWithMessage(ipMask string) error

func OAuthClientIdEmptyErrorWithMessage added in v1.44.1

func OAuthClientIdEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthCookieEmptyErrorWithMessage added in v1.44.1

func OAuthCookieEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthCookieExpireInvalidErrorWithMessage added in v1.44.1

func OAuthCookieExpireInvalidErrorWithMessage(componentName, environmentName, actualExpire string) error

func OAuthCookieNameEmptyErrorWithMessage added in v1.44.1

func OAuthCookieNameEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthCookieRefreshInvalidErrorWithMessage added in v1.44.1

func OAuthCookieRefreshInvalidErrorWithMessage(componentName, environmentName, actualRefresh string) error

func OAuthCookieRefreshMustBeLessThanExpireErrorWithMessage added in v1.44.1

func OAuthCookieRefreshMustBeLessThanExpireErrorWithMessage(componentName, environmentName string) error

func OAuthCookieSameSiteInvalidErrorWithMessage added in v1.44.1

func OAuthCookieSameSiteInvalidErrorWithMessage(componentName, environmentName string, actualSameSite radixv1.CookieSameSiteType) error

func OAuthCookieStoreMinimalIncorrectCookieRefreshIntervalErrorWithMessage added in v1.44.1

func OAuthCookieStoreMinimalIncorrectCookieRefreshIntervalErrorWithMessage(componentName, environmentName string) error

func OAuthCookieStoreMinimalIncorrectSetAuthorizationHeaderErrorWithMessage added in v1.44.1

func OAuthCookieStoreMinimalIncorrectSetAuthorizationHeaderErrorWithMessage(componentName, environmentName string) error

func OAuthCookieStoreMinimalIncorrectSetXAuthRequestHeadersErrorWithMessage added in v1.44.1

func OAuthCookieStoreMinimalIncorrectSetXAuthRequestHeadersErrorWithMessage(componentName, environmentName string) error

func OAuthLoginUrlEmptyErrorWithMessage added in v1.44.1

func OAuthLoginUrlEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthOidcEmptyErrorWithMessage added in v1.44.1

func OAuthOidcEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthOidcJwksUrlEmptyErrorWithMessage added in v1.44.1

func OAuthOidcJwksUrlEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthOidcSkipDiscoveryEmptyErrorWithMessage added in v1.44.1

func OAuthOidcSkipDiscoveryEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthProxyPrefixEmptyErrorWithMessage added in v1.44.1

func OAuthProxyPrefixEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthProxyPrefixIsRootErrorWithMessage added in v1.44.1

func OAuthProxyPrefixIsRootErrorWithMessage(componentName, environmentName string) error

func OAuthRedeemUrlEmptyErrorWithMessage added in v1.44.1

func OAuthRedeemUrlEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthRedisStoreConnectionURLEmptyErrorWithMessage added in v1.44.1

func OAuthRedisStoreConnectionURLEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthRedisStoreEmptyErrorWithMessage added in v1.44.1

func OAuthRedisStoreEmptyErrorWithMessage(componentName, environmentName string) error

func OAuthSessionStoreTypeInvalidErrorWithMessage added in v1.44.1

func OAuthSessionStoreTypeInvalidErrorWithMessage(componentName, environmentName string, actualSessionStoreType radixv1.SessionStoreType) error

func OnlyAppComponentAllowedInWebhookUrlWithMessage added in v1.44.1

func OnlyAppComponentAllowedInWebhookUrlWithMessage(jobComponentName, environment string) error

func PayloadPathCannotBeEmptyForJobErrorWithMessage added in v1.44.1

func PayloadPathCannotBeEmptyForJobErrorWithMessage(jobName string) error

PayloadPathCannotBeEmptyForJobErrorWithMessage Payload path cannot be empty for job

func PortNameIsRequiredForPublicComponentErrorWithMessage added in v1.44.1

func PortNameIsRequiredForPublicComponentErrorWithMessage(publicPortName, component string) error

PortNameIsRequiredForPublicComponentErrorWithMessage Port name cannot be empty

func PortSpecificationCannotBeEmptyForComponentErrorWithMessage added in v1.44.1

func PortSpecificationCannotBeEmptyForComponentErrorWithMessage(component string) error

PortSpecificationCannotBeEmptyForComponentErrorWithMessage Port cannot be empty for component

func PublicImageComponentCannotHaveSourceOrDockerfileSetWithMessage added in v1.44.1

func PublicImageComponentCannotHaveSourceOrDockerfileSetWithMessage(componentName string) error

PublicImageComponentCannotHaveSourceOrDockerfileSetWithMessage Error if image is set and radix config contains src or dockerfile

func RAContainsOldPublic

func RAContainsOldPublic(app *radixv1.RadixApplication) bool

RAContainsOldPublic Checks to see if the radix config is using the deprecated config for public port

func RadixDNSAliasAlreadyUsedByAnotherApplicationError added in v1.47.0

func RadixDNSAliasAlreadyUsedByAnotherApplicationError(alias string) error

RadixDNSAliasAlreadyUsedByAnotherApplicationError Error when RadixDNSAlias already used by another application

func RadixDNSAliasIsReservedForRadixPlatformApplicationError added in v1.47.0

func RadixDNSAliasIsReservedForRadixPlatformApplicationError(alias string) error

RadixDNSAliasIsReservedForRadixPlatformApplicationError Error when RadixDNSAlias is reserved by Radix platform for a Radix application

func RadixDNSAliasIsReservedForRadixPlatformServiceError added in v1.47.0

func RadixDNSAliasIsReservedForRadixPlatformServiceError(alias string) error

RadixDNSAliasIsReservedForRadixPlatformServiceError Error when RadixDNSAlias is reserved by Radix platform for a Radix service

func RequireAdGroups added in v1.35.3

func RequireAdGroups(rr *v1.RadixRegistration) error

RequireAdGroups validates that AdGroups contains minimum one item

func RequireConfigurationItem added in v1.30.4

func RequireConfigurationItem(rr *v1.RadixRegistration) error

RequireConfigurationItem validates that ConfigurationItem for a RadixRegistration set

func ResourceNameCannotBeEmptyErrorWithMessage added in v1.44.1

func ResourceNameCannotBeEmptyErrorWithMessage(resourceName string) error

ResourceNameCannotBeEmptyErrorWithMessage Resource name cannot be left empty

func ResourceRequestOverLimitErrorWithMessage added in v1.44.1

func ResourceRequestOverLimitErrorWithMessage(resource string, require string, limit string) error

ResourceRequestOverLimitErrorWithMessage Invalid resource requirement error

func SchedulerPortCannotBeEmptyForJobErrorWithMessage added in v1.44.1

func SchedulerPortCannotBeEmptyForJobErrorWithMessage(jobName string) error

SchedulerPortCannotBeEmptyForJobErrorWithMessage Scheduler port cannot be empty for job

func SecretNameConflictsWithEnvironmentVariableWithMessage added in v1.44.1

func SecretNameConflictsWithEnvironmentVariableWithMessage(componentName, secretName string) error

SecretNameConflictsWithEnvironmentVariableWithMessage If secret name is the same as environment variable fail validation

func ValidateNotifications added in v1.33.0

func ValidateNotifications(app *radixv1.RadixApplication, notifications *radixv1.Notifications, jobComponentName string, environment string) error

ValidateNotifications Validate specified Notifications for the RadixApplication

func ValidateNotificationsForRA added in v1.33.0

func ValidateNotificationsForRA(app *radixv1.RadixApplication) error

ValidateNotificationsForRA Validate all notifications in the RadixApplication

func ValidateRadixConfigFullName added in v1.27.0

func ValidateRadixConfigFullName(radixConfigFullName string) error

ValidateRadixConfigFullName Validates the radixconfig file name and path

Types

type RadixApplicationValidator added in v1.44.1

type RadixApplicationValidator func(radixApplication *radixv1.RadixApplication) error

RadixApplicationValidator defines a validator function for a RadixApplication

type RadixRegistrationValidator added in v1.30.4

type RadixRegistrationValidator func(radixRegistration *v1.RadixRegistration) error

RadixRegistrationValidator defines a validator function for a RadixRegistration

Jump to

Keyboard shortcuts

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