cozystack/pkg
Aleksei Sviridkin 3685d49c4e
feat(api): add dynamic name length validation based on root-host
Read root-host from cozystack-values secret at API server startup
and use it to compute maximum allowed name length for applications.

For all apps: validates prefix + name fits within the Helm release
name limit (53 chars). For Tenants: additionally checks that the
host label (name + "." + rootHost) fits within the Kubernetes label
value limit (63 chars).

This replaces the static 40-char limit with a dynamic calculation
that accounts for the actual cluster root host length.

Ref: https://github.com/cozystack/cozystack/issues/2001

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
2026-02-11 12:50:30 +03:00
..
apis fix(validation): limit name to 40 chars and add comprehensive tests 2026-02-11 12:49:30 +03:00
apiserver feat(api): add dynamic name length validation based on root-host 2026-02-11 12:50:30 +03:00
cmd/server feat(api): add dynamic name length validation based on root-host 2026-02-11 12:50:30 +03:00
config feat(api): add dynamic name length validation based on root-host 2026-02-11 12:50:30 +03:00
generated [backups] 2026-02-04 15:50:23 +03:00
lineage feat(api): add chartRef to CozystackResourceDefinition 2026-01-14 16:09:43 +01:00
ovnstatus [kubeovn] Implement the KubeOVN plunger 2025-09-11 02:11:58 +03:00
registry feat(api): add dynamic name length validation based on root-host 2026-02-11 12:50:30 +03:00
version refactor(telemetry): split telemetry between operator and controller 2026-01-19 13:52:15 +01:00