You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Namespace name: a middle part that starts or ends with '-' is accepted (abc--x-dev) #512
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingsev:lowA small defect, a defect no code path reaches yet, or a cleanup
Parent: #479. Found by Fable in the review of PR #511, 2026-11-20. It predates #511.
What happens. A desired middle that starts or ends with a dash is accepted everywhere: the API, the Kyverno rule, the stand-in and the portal. So abc--x-dev (middle -x) and abc---dev (middle -) pass. They are valid Kubernetes names (DNS-1123 allows inner hyphens), but they make the name ambiguous and break the rule that the middle sits between two single hyphens.
Fix to make. The middle starts and ends with a letter or digit (^[a-z0-9]([-a-z0-9]*[a-z0-9])?$), in the API (_check_desired_name), the generated Kyverno rule, the stand-in and the portal hint, with a test per layer: abc--x-dev refused, abc-x-y-dev accepted.
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingsev:lowA small defect, a defect no code path reaches yet, or a cleanup
Activity
#512 Fable's F1 and F2 on #514: the Kyverno suffix message matches cm…