radixvalidators

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
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

func CPUResourceRequirementFormatError(value string) error

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

func ComponentForDNSAppAliasNotDefinedError(component string) error

ComponentForDNSAppAliasNotDefinedError Error when env not defined

func ComponentForDNSExternalAliasIsNotMarkedAsPublicError

func ComponentForDNSExternalAliasIsNotMarkedAsPublicError(component string) error

ComponentForDNSExternalAliasIsNotMarkedAsPublicError Component is not marked as public

func ComponentForDNSExternalAliasNotDefinedError

func ComponentForDNSExternalAliasNotDefinedError(component string) error

ComponentForDNSExternalAliasNotDefinedError Error when env not defined

func ComponentWithDynamicTagRequiresTagInEnvironmentConfig added in v1.4.1

func ComponentWithDynamicTagRequiresTagInEnvironmentConfig(componentName string) error

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

func EnvForDNSAppAliasNotDefinedError(env string) error

EnvForDNSAppAliasNotDefinedError Error when env not defined

func EnvForDNSExternalAliasNotDefinedError

func EnvForDNSExternalAliasNotDefinedError(env string) error

EnvForDNSExternalAliasNotDefinedError Error when env not defined

func EnvironmentReferencedByComponentDoesNotExistError

func EnvironmentReferencedByComponentDoesNotExistError(environment, component string) error

EnvironmentReferencedByComponentDoesNotExistError Environment does not exists

func ExternalAliasCannotBeEmptyError

func ExternalAliasCannotBeEmptyError() error

ExternalAliasCannotBeEmptyError Structure cannot be left empty

func InvalidAppNameError

func InvalidAppNameError(value string) error

InvalidAppNameError Invalid app name

func InvalidAppNameLengthError

func InvalidAppNameLengthError(value string) error

InvalidAppNameLengthError Invalid app length

func InvalidBranchNameError

func InvalidBranchNameError(branch string) error

InvalidBranchNameError Indicates that branch name is invalid

func InvalidEmailError added in v1.3.2

func InvalidEmailError(resourceName, email string) error

InvalidEmailError Invalid email

func InvalidNumberOfReplicaError

func InvalidNumberOfReplicaError(replica int) error

InvalidNumberOfReplicaError Invalid number of replica

func InvalidPortNameLengthError

func InvalidPortNameLengthError(value string) error

InvalidPortNameLengthError Invalid resource length

func InvalidResourceError

func InvalidResourceError(name string) error

InvalidResourceError Invalid resource type

func InvalidResourceNameError

func InvalidResourceNameError(resourceName, value string) error

InvalidResourceNameError Invalid resource name

func InvalidResourceNameLengthError

func InvalidResourceNameLengthError(resourceName, value string) error

InvalidResourceNameLengthError Invalid resource length

func MaxReplicasForHPANotSetOrZeroError added in v1.0.3

func MaxReplicasForHPANotSetOrZeroError(component, environment string) error

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

func MemoryResourceRequirementFormatError

func MemoryResourceRequirementFormatError(value string) error

MemoryResourceRequirementFormatError Invalid memory resource requirement error

func MinReplicasGreaterThanMaxReplicasError added in v1.0.3

func MinReplicasGreaterThanMaxReplicasError(component, environment string) error

MinReplicasGreaterThanMaxReplicasError Indicates that minReplicas is greater than maxReplicas

func MissingPrivateImageHubEmailError added in v1.0.3

func MissingPrivateImageHubEmailError(server string) error

MissingPrivateImageHubEmailError Error when email for private image hubs is not defined

func MissingPrivateImageHubUsernameError added in v1.0.3

func MissingPrivateImageHubUsernameError(server string) error

MissingPrivateImageHubUsernameError Error when username for private image hubs is not defined

func MultipleMatchingPortNamesError

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

MultipleMatchingPortNamesError Multiple matching port names

func NoRegistrationExistsForApplicationError

func NoRegistrationExistsForApplicationError(appName string) error

NoRegistrationExistsForApplicationError No registration exists

func PortNameIsRequiredForPublicComponentError

func PortNameIsRequiredForPublicComponentError(publicPortName, component string) error

PortNameIsRequiredForPublicComponentError Port name cannot be empty

func PortSpecificationCannotBeEmptyForComponentError

func PortSpecificationCannotBeEmptyForComponentError(component string) error

PortSpecificationCannotBeEmptyForComponentError Port cannot be empty for component

func PublicImageComponentCannotHaveSourceOrDockerfileSet

func PublicImageComponentCannotHaveSourceOrDockerfileSet(componentName string) error

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

func ResourceNameCannotBeEmptyError(resourceName string) error

ResourceNameCannotBeEmptyError Resource name cannot be left empty

func SecretNameConfictsWithEnvironmentVariable added in v1.5.3

func SecretNameConfictsWithEnvironmentVariable(componentName, secretName string) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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