Files
lolia-frp/pkg/config/v1/validation
fatedier 4c07ebda5b refactor(validation): inline annotation qualified name check (#5601)
Replace the single use of k8s.io/apimachinery/pkg/util/validation
.IsQualifiedName (annotation key validation in pkg/config/v1/validation)
with a local implementation in pkg/util/validation. Newer apimachinery
versions link klog only for IP/CIDR warning helpers, which grows frpc and
frps, and this was the only frp import of that package.

The local IsQualifiedName keeps the exact behavior and error messages of
apimachinery v0.28.8, including the qualified-name (label key) format and
the DNS-1123 subdomain prefix rules. Annotation keys are still lowercased
before validation, so the accepted set is unchanged.

Verified against apimachinery v0.28.8 on 228,220 inputs (exhaustive short
strings, boundary lengths and seeded random data, including lowercased
variants): every error message matches.

No dependency versions change; go.mod and go.sum are untouched.
2026-11-04 19:59:26 +08:00
..
2026-05-12 11:13:50 +08:00
2026-05-12 11:13:50 +08:00
2026-08-12 23:56:00 +08:00
2024-02-20 12:01:41 +08:00