validation

package
v1.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TenantKind = "Tenant"

TenantKind is the Application.Kind string that gates the tenant-specific name rules below. It must stay in sync with the `kind` field of the tenant ApplicationDefinition (packages/system/tenant-rd/cozyrds/tenant.yaml) which is the upstream source the aggregated API reads at startup via config.Application.Kind.

Variables

This section is empty.

Functions

func ValidateApplicationName added in v1.0.0

func ValidateApplicationName(name, kindName string, fldPath *field.Path) field.ErrorList

ValidateApplicationName validates that an Application name is acceptable for the given kind. All applications must conform to DNS-1035 because their names are used to create Kubernetes resources (Services, Namespaces, etc.) that require DNS-1035 compliance. Tenant applications additionally must be alphanumeric and begin with a lowercase letter because of the Helm chart constraint described on tenantNameRegex. Note: length validation is handled separately by validateNameLength in the REST handler, which computes dynamic limits based on Helm release prefix.

Types

This section is empty.

Jump to

Keyboard shortcuts

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