Documentation
¶
Index ¶
Constants ¶
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
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.