Documentation ¶
Index ¶
- Constants
- Variables
- func AliasForDNSAliasNotDefinedError() error
- func ApplicationNameNotLowercaseErrorWithMessage(appName string) error
- func CPUResourceRequirementFormatErrorWithMessage(value string) error
- func CanRadixApplicationBeInserted(radixClient radixclient.Interface, app *radixv1.RadixApplication, ...) error
- func CanRadixDeploymentBeInserted(deploy *radixv1.RadixDeployment) error
- func CanRadixRegistrationBeInserted(client radixclient.Interface, radixRegistration *v1.RadixRegistration, ...) error
- func CanRadixRegistrationBeUpdated(radixRegistration *v1.RadixRegistration, ...) error
- func ComponentForDNSAliasIsNotMarkedAsPublicError(component string) error
- func ComponentForDNSAliasNotDefinedError(component string) error
- func ComponentForDNSAppAliasNotDefinedError(component string) error
- func ComponentForDNSAppAliasNotDefinedErrorWithMessage(component string) error
- func ComponentForDNSExternalAliasIsNotMarkedAsPublicErrorWithMessage(component string) error
- func ComponentForDNSExternalAliasNotDefinedErrorWithMessage(component string) error
- func ComponentNameReservedSuffixErrorWithMessage(componentName, componentType, suffix string) error
- func ComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTagWithMessage(componentName, environment string) error
- func DuplicateAliasForDNSAliasError(alias string) error
- func DuplicateComponentOrJobNameErrorWithMessage(duplicates []string) error
- func DuplicateExternalAliasErrorWithMessage() error
- func EnvForDNSAliasNotDefinedError(env string) error
- func EnvForDNSAppAliasNotDefinedErrorWithMessage(env string) error
- func EnvForDNSExternalAliasNotDefinedErrorWithMessage(env string) error
- func EnvironmentReferencedByComponentDoesNotExistErrorWithMessage(environment, component string) error
- func GetRadixRegistrationBeInsertedWarnings(client radixclient.Interface, radixRegistration *v1.RadixRegistration) ([]string, error)
- func GetRadixRegistrationBeUpdatedWarnings(client radixclient.Interface, radixRegistration *v1.RadixRegistration) ([]string, error)
- func GitTagsContainIllegalChars(gitTags string) error
- func InvalidAppNameLengthErrorWithMessage(value string) error
- func InvalidBranchNameErrorWithMessage(branch string) error
- func InvalidConfigBranchNameWithMessage(configBranch string) error
- func InvalidEgressPortProtocolErrorWithMessage(protocol string, validProtocols []string) error
- func InvalidEmailErrorWithMessage(resourceName, email string) error
- func InvalidLowerCaseAlphaNumericDashResourceNameErrorWithMessage(resourceName, value string) error
- func InvalidNumberOfReplicaError(replica int) error
- func InvalidPortInWebhookUrlWithMessage(webhookUrlPort, targetComponentName, jobComponentName, environment string) error
- func InvalidPortNameLengthErrorWithMessage(value string) error
- func InvalidPortNumberErrorWithMessage(value int32) error
- func InvalidResourceErrorWithMessage(name string) error
- func InvalidResourceNameErrorWithMessage(resourceName, value string) error
- func InvalidStringValueMaxLengthErrorWithMessage(resourceName, value string, maxValue int) error
- func InvalidStringValueMinLengthErrorWithMessage(resourceName, value string, minValue int) error
- func InvalidUUIDErrorWithMessage(resourceName string, uuid string) error
- func InvalidUseOfPublicPortInWebhookUrlWithMessage(webhookUrlPort, targetComponentName, jobComponentName, environment string) error
- func InvalidVerificationTypeWithMessage(verification string) error
- func InvalidWebhookUrlWithMessage(jobComponentName, environment string) error
- func IsApplicationNameLowercase(appName string) (bool, error)
- func IsRadixApplicationValid(app *radixv1.RadixApplication, ...) error
- func MaxReplicasForHPANotSetOrZeroErrorWithMessage(component, environment string) error
- func MemoryResourceRequirementFormatErrorWithMessage(value string) error
- func MinReplicasGreaterThanMaxReplicasErrorWithMessage(component, environment string) error
- func MissingAzureIdentityErrorWithMessage(keyVaultName, componentName string) error
- func MissingPortInWebhookUrlWithMessage(jobComponentName, environment string) error
- func MissingPrivateImageHubUsernameErrorWithMessage(server string) error
- func MonitoringPortNameIsNotFoundComponentErrorWithMessage(portName, component string) error
- func MultipleMatchingPortNamesErrorWithMessage(matchingPortName int, publicPortName, component string) error
- func NoRegistrationExistsForApplicationErrorWithMessage(appName string) error
- func NoScalingResourceSetErrorWithMessage(component, environment string) error
- func NotAllowedSchemeInWebhookUrlWithMessage(schema, jobComponentName, environment string) error
- func NotValidCidrErrorWithMessage(s string) error
- func NotValidIPv4CidrErrorWithMessage(ipMask string) error
- func OAuthClientIdEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthCookieEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthCookieExpireInvalidErrorWithMessage(componentName, environmentName, actualExpire string) error
- func OAuthCookieNameEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthCookieRefreshInvalidErrorWithMessage(componentName, environmentName, actualRefresh string) error
- func OAuthCookieRefreshMustBeLessThanExpireErrorWithMessage(componentName, environmentName string) error
- func OAuthCookieSameSiteInvalidErrorWithMessage(componentName, environmentName string, ...) error
- func OAuthCookieStoreMinimalIncorrectCookieRefreshIntervalErrorWithMessage(componentName, environmentName string) error
- func OAuthCookieStoreMinimalIncorrectSetAuthorizationHeaderErrorWithMessage(componentName, environmentName string) error
- func OAuthCookieStoreMinimalIncorrectSetXAuthRequestHeadersErrorWithMessage(componentName, environmentName string) error
- func OAuthLoginUrlEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthOidcEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthOidcJwksUrlEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthOidcSkipDiscoveryEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthProxyPrefixEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthProxyPrefixIsRootErrorWithMessage(componentName, environmentName string) error
- func OAuthRedeemUrlEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthRedisStoreConnectionURLEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthRedisStoreEmptyErrorWithMessage(componentName, environmentName string) error
- func OAuthRequiresPublicPortErrorWithMessage(componentName, environmentName string) error
- func OAuthSessionStoreTypeInvalidErrorWithMessage(componentName, environmentName string, ...) error
- func OnlyAppComponentAllowedInWebhookUrlWithMessage(jobComponentName, environment string) error
- func PayloadPathCannotBeEmptyForJobErrorWithMessage(jobName string) error
- func PortNameIsRequiredForPublicComponentErrorWithMessage(publicPortName, component string) error
- func PublicImageComponentCannotHaveSourceOrDockerfileSetWithMessage(componentName string) error
- func RAContainsOldPublic(app *radixv1.RadixApplication) bool
- func RadixDNSAliasAlreadyUsedByAnotherApplicationError(alias string) error
- func RadixDNSAliasIsReservedForRadixPlatformApplicationError(alias string) error
- func RadixDNSAliasIsReservedForRadixPlatformServiceError(alias string) error
- func RequireAdGroups(rr *v1.RadixRegistration) error
- func RequireConfigurationItem(rr *v1.RadixRegistration) error
- func ResourceNameCannotBeEmptyErrorWithMessage(resourceName string) error
- func ResourceRequestOverLimitErrorWithMessage(resource string, require string, limit string) error
- func SchedulerPortCannotBeEmptyForJobErrorWithMessage(jobName string) error
- func SecretNameConflictsWithEnvironmentVariableWithMessage(componentName, secretName string) error
- func ValidateNotifications(app *radixv1.RadixApplication, notifications *radixv1.Notifications, ...) error
- func ValidateNotificationsForRA(app *radixv1.RadixApplication) error
- func ValidateRadixConfigFullName(radixConfigFullName string) error
- type RadixApplicationValidator
- type RadixRegistrationValidator
Constants ¶
const (
// MaxReplica Max number of replicas a deployment is allowed to have
MaxReplica = 64
)
Variables ¶
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") 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") ErrOAuthRequiresPublicPort = errors.Wrap(ErrOauth, "oauth requires public port") 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") )
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
ApplicationNameNotLowercaseErrorWithMessage Indicates that application name contains upper case letters
func CPUResourceRequirementFormatErrorWithMessage ¶ added in v1.44.1
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
ComponentForDNSAliasIsNotMarkedAsPublicError Component is not marked as public
func ComponentForDNSAliasNotDefinedError ¶ added in v1.47.0
ComponentForDNSAliasNotDefinedError Error when component not defined
func ComponentForDNSAppAliasNotDefinedError ¶
ComponentForDNSAppAliasNotDefinedError Error when component not defined
func ComponentForDNSAppAliasNotDefinedErrorWithMessage ¶ added in v1.44.1
ComponentForDNSAppAliasNotDefinedErrorWithMessage Error when env not defined
func ComponentForDNSExternalAliasIsNotMarkedAsPublicErrorWithMessage ¶ added in v1.44.1
ComponentForDNSExternalAliasIsNotMarkedAsPublicErrorWithMessage Component is not marked as public
func ComponentForDNSExternalAliasNotDefinedErrorWithMessage ¶ added in v1.44.1
ComponentForDNSExternalAliasNotDefinedErrorWithMessage Error when env not defined
func ComponentNameReservedSuffixErrorWithMessage ¶ added in v1.44.1
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
DuplicateAliasForDNSAliasError Error when aliases are duplicate
func DuplicateComponentOrJobNameErrorWithMessage ¶ added in v1.44.1
func DuplicateExternalAliasErrorWithMessage ¶ added in v1.44.1
func DuplicateExternalAliasErrorWithMessage() error
DuplicateExternalAliasErrorWithMessage Cannot have duplicate external alias
func EnvForDNSAliasNotDefinedError ¶ added in v1.47.0
EnvForDNSAliasNotDefinedError Error when env not defined
func EnvForDNSAppAliasNotDefinedErrorWithMessage ¶ added in v1.44.1
EnvForDNSAppAliasNotDefinedErrorWithMessage Error when env not defined
func EnvForDNSExternalAliasNotDefinedErrorWithMessage ¶ added in v1.44.1
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
GitTagsContainIllegalChars Git tags contain illegal characters
func InvalidAppNameLengthErrorWithMessage ¶ added in v1.44.1
InvalidAppNameLengthErrorWithMessage Invalid app length
func InvalidBranchNameErrorWithMessage ¶ added in v1.44.1
InvalidBranchNameErrorWithMessage Indicates that branch name is invalid
func InvalidConfigBranchNameWithMessage ¶ added in v1.44.1
func InvalidEgressPortProtocolErrorWithMessage ¶ added in v1.44.1
func InvalidEmailErrorWithMessage ¶ added in v1.44.1
InvalidEmailErrorWithMessage Invalid email
func InvalidLowerCaseAlphaNumericDashResourceNameErrorWithMessage ¶ added in v1.47.0
InvalidLowerCaseAlphaNumericDashResourceNameErrorWithMessage Invalid lower case alphanumeric, dash resource name error
func InvalidNumberOfReplicaError ¶
InvalidNumberOfReplicaError Invalid number of replica
func InvalidPortInWebhookUrlWithMessage ¶ added in v1.44.1
func InvalidPortNameLengthErrorWithMessage ¶ added in v1.44.1
InvalidPortNameLengthErrorWithMessage Invalid resource length
func InvalidPortNumberErrorWithMessage ¶ added in v1.44.1
InvalidPortNumberErrorWithMessage Invalid port number
func InvalidResourceErrorWithMessage ¶ added in v1.44.1
InvalidResourceErrorWithMessage Invalid resource type
func InvalidResourceNameErrorWithMessage ¶ added in v1.44.1
InvalidResourceNameErrorWithMessage Invalid resource name
func InvalidStringValueMaxLengthErrorWithMessage ¶ added in v1.44.1
InvalidStringValueMaxLengthErrorWithMessage Invalid string value max length
func InvalidStringValueMinLengthErrorWithMessage ¶ added in v1.44.1
InvalidStringValueMinLengthErrorWithMessage Invalid string value min length
func InvalidUUIDErrorWithMessage ¶ added in v1.44.1
InvalidUUIDErrorWithMessage Invalid UUID
func InvalidUseOfPublicPortInWebhookUrlWithMessage ¶ added in v1.44.1
func InvalidVerificationTypeWithMessage ¶ added in v1.44.1
func InvalidWebhookUrlWithMessage ¶ added in v1.44.1
func IsApplicationNameLowercase ¶ added in v1.5.16
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
MaxReplicasForHPANotSetOrZeroErrorWithMessage Indicates that minReplicas of horizontalScaling is not set or set to 0
func MemoryResourceRequirementFormatErrorWithMessage ¶ added in v1.44.1
MemoryResourceRequirementFormatErrorWithMessage Invalid memory resource requirement error
func MinReplicasGreaterThanMaxReplicasErrorWithMessage ¶ added in v1.44.1
MinReplicasGreaterThanMaxReplicasErrorWithMessage Indicates that minReplicas is greater than maxReplicas
func MissingAzureIdentityErrorWithMessage ¶ added in v1.44.1
func MissingPortInWebhookUrlWithMessage ¶ added in v1.44.1
func MissingPrivateImageHubUsernameErrorWithMessage ¶ added in v1.44.1
MissingPrivateImageHubUsernameErrorWithMessage Error when username for private image hubs is not defined
func MonitoringPortNameIsNotFoundComponentErrorWithMessage ¶ added in v1.44.1
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
NoRegistrationExistsForApplicationErrorWithMessage No registration exists
func NoScalingResourceSetErrorWithMessage ¶ added in v1.44.1
NoScalingResourceSetErrorWithMessage Indicates that no scaling resource is set for horizontal scaling
func NotAllowedSchemeInWebhookUrlWithMessage ¶ added in v1.44.1
func NotValidCidrErrorWithMessage ¶ added in v1.44.1
func NotValidIPv4CidrErrorWithMessage ¶ added in v1.44.1
func OAuthClientIdEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthCookieEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthCookieExpireInvalidErrorWithMessage ¶ added in v1.44.1
func OAuthCookieNameEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthCookieRefreshInvalidErrorWithMessage ¶ added in v1.44.1
func OAuthCookieRefreshMustBeLessThanExpireErrorWithMessage ¶ added in v1.44.1
func OAuthCookieSameSiteInvalidErrorWithMessage ¶ added in v1.44.1
func OAuthCookieSameSiteInvalidErrorWithMessage(componentName, environmentName string, actualSameSite radixv1.CookieSameSiteType) error
func OAuthCookieStoreMinimalIncorrectCookieRefreshIntervalErrorWithMessage ¶ added in v1.44.1
func OAuthCookieStoreMinimalIncorrectSetAuthorizationHeaderErrorWithMessage ¶ added in v1.44.1
func OAuthCookieStoreMinimalIncorrectSetXAuthRequestHeadersErrorWithMessage ¶ added in v1.44.1
func OAuthLoginUrlEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthOidcEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthOidcJwksUrlEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthOidcSkipDiscoveryEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthProxyPrefixEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthProxyPrefixIsRootErrorWithMessage ¶ added in v1.44.1
func OAuthRedeemUrlEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthRedisStoreConnectionURLEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthRedisStoreEmptyErrorWithMessage ¶ added in v1.44.1
func OAuthRequiresPublicPortErrorWithMessage ¶ added in v1.48.0
func OAuthSessionStoreTypeInvalidErrorWithMessage ¶ added in v1.44.1
func OAuthSessionStoreTypeInvalidErrorWithMessage(componentName, environmentName string, actualSessionStoreType radixv1.SessionStoreType) error
func OnlyAppComponentAllowedInWebhookUrlWithMessage ¶ added in v1.44.1
func PayloadPathCannotBeEmptyForJobErrorWithMessage ¶ added in v1.44.1
PayloadPathCannotBeEmptyForJobErrorWithMessage Payload path cannot be empty for job
func PortNameIsRequiredForPublicComponentErrorWithMessage ¶ added in v1.44.1
PortNameIsRequiredForPublicComponentErrorWithMessage Port name cannot be empty
func PublicImageComponentCannotHaveSourceOrDockerfileSetWithMessage ¶ added in v1.44.1
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
RadixDNSAliasAlreadyUsedByAnotherApplicationError Error when RadixDNSAlias already used by another application
func RadixDNSAliasIsReservedForRadixPlatformApplicationError ¶ added in v1.47.0
RadixDNSAliasIsReservedForRadixPlatformApplicationError Error when RadixDNSAlias is reserved by Radix platform for a Radix application
func RadixDNSAliasIsReservedForRadixPlatformServiceError ¶ added in v1.47.0
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
ResourceNameCannotBeEmptyErrorWithMessage Resource name cannot be left empty
func ResourceRequestOverLimitErrorWithMessage ¶ added in v1.44.1
ResourceRequestOverLimitErrorWithMessage Invalid resource requirement error
func SchedulerPortCannotBeEmptyForJobErrorWithMessage ¶ added in v1.44.1
SchedulerPortCannotBeEmptyForJobErrorWithMessage Scheduler port cannot be empty for job
func SecretNameConflictsWithEnvironmentVariableWithMessage ¶ added in v1.44.1
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
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