fix: unclear documentation on NamespaceDefaultLabelName feature gate

This commit is contained in:
Rayowang 2023-06-29 00:53:20 +08:00
parent 23723ee5f1
commit 23ea8a1dc7
1 changed files with 2 additions and 4 deletions

View File

@ -147,12 +147,10 @@ kubectl api-resources --namespaced=false
## Automatic labelling
{{< feature-state for_k8s_version="1.22" state="stable" >}}
{{< feature-state for_k8s_version="1.22" state="stable" for_k8s_version="1.23" state="removed" >}}
The Kubernetes control plane sets an immutable {{< glossary_tooltip text="label" term_id="label" >}}
`kubernetes.io/metadata.name` on all namespaces, provided that the `NamespaceDefaultLabelName`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled.
The value of the label is the namespace name.
`kubernetes.io/metadata.name` on all namespaces, containing the namespace name.
## {{% heading "whatsnext" %}}