Fix requirements for label value

Value *can* indeed be empty.

Fixes: bd55d498df ("Clarify requirements for label value syntax")

Signed-off-by: Mauricio Vásquez <mauricio@kinvolk.io>
pull/27634/head
Mauricio Vásquez 2021-04-20 13:42:25 -05:00
parent 4beb4d2a2f
commit 4f319fd5ab
1 changed files with 1 additions and 2 deletions

View File

@ -53,7 +53,7 @@ If the prefix is omitted, the label Key is presumed to be private to the user. A
The `kubernetes.io/` and `k8s.io/` prefixes are reserved for Kubernetes core components.
Valid label value:
* must be 63 characters or less (cannot be empty),
* must be 63 characters or less (can be empty),
* must begin and end with an alphanumeric character (`[a-z0-9A-Z]`),
* could contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between.
@ -237,4 +237,3 @@ selector:
One use case for selecting over labels is to constrain the set of nodes onto which a pod can schedule.
See the documentation on [node selection](/docs/concepts/scheduling-eviction/assign-pod-node/) for more information.