Documentation ¶
Index ¶
- Constants
- func AppNameCannotBeEmptyError() error
- func CPUResourceRequirementFormatError(value string) error
- func CanRadixApplicationBeInserted(client radixclient.Interface, app *radixv1.RadixApplication) (bool, error)
- func CanRadixApplicationBeInsertedErrors(client radixclient.Interface, app *radixv1.RadixApplication) (bool, []error)
- func CanRadixDeploymentBeInserted(client radixclient.Interface, deploy *radixv1.RadixDeployment) (bool, error)
- func CanRadixRegistrationBeInserted(client radixclient.Interface, radixRegistration *v1.RadixRegistration) (bool, error)
- func CanRadixRegistrationBeUpdated(client radixclient.Interface, radixRegistration *v1.RadixRegistration) (bool, error)
- func ComponentForDNSAppAliasNotDefinedError(component string) error
- func ComponentForDNSExternalAliasIsNotMarkedAsPublicError(component string) error
- func ComponentForDNSExternalAliasNotDefinedError(component string) error
- func ComponentWithDynamicTagRequiresTagInEnvironmentConfig(componentName string) error
- func ComponentWithDynamicTagRequiresTagInEnvironmentConfigForEnvironment(componentName, environment string) error
- func ComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTag(componentName, environment string) error
- func DuplicateExternalAliasError() error
- func EnvForDNSAppAliasNotDefinedError(env string) error
- func EnvForDNSExternalAliasNotDefinedError(env string) error
- func EnvironmentReferencedByComponentDoesNotExistError(environment, component string) error
- func ExternalAliasCannotBeEmptyError() error
- func InvalidAppNameError(value string) error
- func InvalidAppNameLengthError(value string) error
- func InvalidBranchNameError(branch string) error
- func InvalidEmailError(resourceName, email string) error
- func InvalidNumberOfReplicaError(replica int) error
- func InvalidPortNameLengthError(value string) error
- func InvalidResourceError(name string) error
- func InvalidResourceNameError(resourceName, value string) error
- func InvalidResourceNameLengthError(resourceName, value string) error
- func MaxReplicasForHPANotSetOrZeroError(component, environment string) error
- func MemoryResourceRequirementFormatError(value string) error
- func MinReplicasGreaterThanMaxReplicasError(component, environment string) error
- func MissingPrivateImageHubEmailError(server string) error
- func MissingPrivateImageHubUsernameError(server string) error
- func MultipleMatchingPortNamesError(matchingPortName int, publicPortName, component string) error
- func NoRegistrationExistsForApplicationError(appName string) error
- func PortNameIsRequiredForPublicComponentError(publicPortName, component string) error
- func PortSpecificationCannotBeEmptyForComponentError(component string) error
- func PublicImageComponentCannotHaveSourceOrDockerfileSet(componentName string) error
- func RAContainsOldPublic(app *radixv1.RadixApplication) bool
- func ResourceNameCannotBeEmptyError(resourceName string) error
- func SecretNameConfictsWithEnvironmentVariable(componentName, secretName string) error
Constants ¶
const (
// MaxReplica Max number of replicas a deployment is allowed to have
MaxReplica = 64
)
Variables ¶
This section is empty.
Functions ¶
func AppNameCannotBeEmptyError ¶
func AppNameCannotBeEmptyError() error
AppNameCannotBeEmptyError App name cannot be empty
func CPUResourceRequirementFormatError ¶
CPUResourceRequirementFormatError Invalid CPU resource requirement
func CanRadixApplicationBeInserted ¶
func CanRadixApplicationBeInserted(client radixclient.Interface, app *radixv1.RadixApplication) (bool, error)
CanRadixApplicationBeInserted Checks if application config is valid. Returns a single error, if this is the case
func CanRadixApplicationBeInsertedErrors ¶
func CanRadixApplicationBeInsertedErrors(client radixclient.Interface, app *radixv1.RadixApplication) (bool, []error)
CanRadixApplicationBeInsertedErrors Checks if application config is valid. Returns list of errors, if present
func CanRadixDeploymentBeInserted ¶
func CanRadixDeploymentBeInserted(client radixclient.Interface, deploy *radixv1.RadixDeployment) (bool, error)
CanRadixDeploymentBeInserted Checks if RD is valid
func CanRadixRegistrationBeInserted ¶
func CanRadixRegistrationBeInserted(client radixclient.Interface, radixRegistration *v1.RadixRegistration) (bool, error)
CanRadixRegistrationBeInserted Validates RR
func CanRadixRegistrationBeUpdated ¶
func CanRadixRegistrationBeUpdated(client radixclient.Interface, radixRegistration *v1.RadixRegistration) (bool, error)
CanRadixRegistrationBeUpdated Validates update of RR
func ComponentForDNSAppAliasNotDefinedError ¶
ComponentForDNSAppAliasNotDefinedError Error when env not defined
func ComponentForDNSExternalAliasIsNotMarkedAsPublicError ¶
ComponentForDNSExternalAliasIsNotMarkedAsPublicError Component is not marked as public
func ComponentForDNSExternalAliasNotDefinedError ¶
ComponentForDNSExternalAliasNotDefinedError Error when env not defined
func ComponentWithDynamicTagRequiresTagInEnvironmentConfig ¶ added in v1.4.1
ComponentWithDynamicTagRequiresTagInEnvironmentConfig Error if image is set with dynamic tag and tag is missing
func ComponentWithDynamicTagRequiresTagInEnvironmentConfigForEnvironment ¶ added in v1.4.1
func ComponentWithDynamicTagRequiresTagInEnvironmentConfigForEnvironment(componentName, environment string) error
ComponentWithDynamicTagRequiresTagInEnvironmentConfigForEnvironment Error if image is set with dynamic tag and tag is missing
func ComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTag ¶ added in v1.4.1
func ComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTag(componentName, environment string) error
ComponentWithTagInEnvironmentConfigForEnvironmentRequiresDynamicTag If tag is set then the dynamic tag needs to be set on the image
func DuplicateExternalAliasError ¶
func DuplicateExternalAliasError() error
DuplicateExternalAliasError Cannot have duplicate external alias
func EnvForDNSAppAliasNotDefinedError ¶
EnvForDNSAppAliasNotDefinedError Error when env not defined
func EnvForDNSExternalAliasNotDefinedError ¶
EnvForDNSExternalAliasNotDefinedError Error when env not defined
func EnvironmentReferencedByComponentDoesNotExistError ¶
EnvironmentReferencedByComponentDoesNotExistError Environment does not exists
func ExternalAliasCannotBeEmptyError ¶
func ExternalAliasCannotBeEmptyError() error
ExternalAliasCannotBeEmptyError Structure cannot be left empty
func InvalidAppNameError ¶
InvalidAppNameError Invalid app name
func InvalidAppNameLengthError ¶
InvalidAppNameLengthError Invalid app length
func InvalidBranchNameError ¶
InvalidBranchNameError Indicates that branch name is invalid
func InvalidEmailError ¶ added in v1.3.2
InvalidEmailError Invalid email
func InvalidNumberOfReplicaError ¶
InvalidNumberOfReplicaError Invalid number of replica
func InvalidPortNameLengthError ¶
InvalidPortNameLengthError Invalid resource length
func InvalidResourceError ¶
InvalidResourceError Invalid resource type
func InvalidResourceNameError ¶
InvalidResourceNameError Invalid resource name
func InvalidResourceNameLengthError ¶
InvalidResourceNameLengthError Invalid resource length
func MaxReplicasForHPANotSetOrZeroError ¶ added in v1.0.3
MaxReplicasForHPANotSetOrZeroError Indicates that minReplicas of horizontalScaling is not set or set to 0
func MemoryResourceRequirementFormatError ¶
MemoryResourceRequirementFormatError Invalid memory resource requirement error
func MinReplicasGreaterThanMaxReplicasError ¶ added in v1.0.3
MinReplicasGreaterThanMaxReplicasError Indicates that minReplicas is greater than maxReplicas
func MissingPrivateImageHubEmailError ¶ added in v1.0.3
MissingPrivateImageHubEmailError Error when email for private image hubs is not defined
func MissingPrivateImageHubUsernameError ¶ added in v1.0.3
MissingPrivateImageHubUsernameError Error when username for private image hubs is not defined
func MultipleMatchingPortNamesError ¶
MultipleMatchingPortNamesError Multiple matching port names
func NoRegistrationExistsForApplicationError ¶
NoRegistrationExistsForApplicationError No registration exists
func PortNameIsRequiredForPublicComponentError ¶
PortNameIsRequiredForPublicComponentError Port name cannot be empty
func PortSpecificationCannotBeEmptyForComponentError ¶
PortSpecificationCannotBeEmptyForComponentError Port cannot be empty for component
func PublicImageComponentCannotHaveSourceOrDockerfileSet ¶
PublicImageComponentCannotHaveSourceOrDockerfileSet 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 ResourceNameCannotBeEmptyError ¶
ResourceNameCannotBeEmptyError Resource name cannot be left empty
func SecretNameConfictsWithEnvironmentVariable ¶ added in v1.5.3
SecretNameConfictsWithEnvironmentVariable If secret name is the same as environment variable fail validation
Types ¶
This section is empty.