From 4f319fd5ab0ef41a1110ec5ef4aedb403e4b3fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauricio=20V=C3=A1squez?= Date: Tue, 20 Apr 2021 13:42:25 -0500 Subject: [PATCH 1/2] Fix requirements for label value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Value *can* indeed be empty. Fixes: bd55d498df83 ("Clarify requirements for label value syntax") Signed-off-by: Mauricio Vásquez --- .../en/docs/concepts/overview/working-with-objects/labels.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/en/docs/concepts/overview/working-with-objects/labels.md b/content/en/docs/concepts/overview/working-with-objects/labels.md index 811d9fb3f7..d2a879c0a2 100644 --- a/content/en/docs/concepts/overview/working-with-objects/labels.md +++ b/content/en/docs/concepts/overview/working-with-objects/labels.md @@ -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. - From 08b8930751eb97ec797b92582fcdafc2299b3fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauricio=20V=C3=A1squez?= Date: Thu, 22 Apr 2021 06:59:44 -0500 Subject: [PATCH 2/2] Update content/en/docs/concepts/overview/working-with-objects/labels.md Co-authored-by: Tim Bannister --- .../en/docs/concepts/overview/working-with-objects/labels.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/overview/working-with-objects/labels.md b/content/en/docs/concepts/overview/working-with-objects/labels.md index d2a879c0a2..25eb5da66e 100644 --- a/content/en/docs/concepts/overview/working-with-objects/labels.md +++ b/content/en/docs/concepts/overview/working-with-objects/labels.md @@ -54,7 +54,7 @@ The `kubernetes.io/` and `k8s.io/` prefixes are reserved for Kubernetes core com Valid label value: * must be 63 characters or less (can be empty), -* must begin and end with an alphanumeric character (`[a-z0-9A-Z]`), +* unless empty, must begin and end with an alphanumeric character (`[a-z0-9A-Z]`), * could contain dashes (`-`), underscores (`_`), dots (`.`), and alphanumerics between. For example, here's the configuration file for a Pod that has two labels `environment: production` and `app: nginx` :