Skip to content

Commit 52e2f5e

Browse files
authored
Merge pull request #42265 from pegasas/junhua/np
Remove "NamespaceDefaultLabelName" feature gate from the Network Policies page
2 parents effe258 + 9f81969 commit 52e2f5e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

content/en/docs/concepts/services-networking/network-policies.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,8 @@ namespaces based on their labels.
340340

341341
## Targeting a Namespace by its name
342342

343-
{{< feature-state for_k8s_version="1.22" state="stable" >}}
344-
345343
The Kubernetes control plane sets an immutable label `kubernetes.io/metadata.name` on all
346-
namespaces, provided that the `NamespaceDefaultLabelName`
347-
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled.
348-
The value of the label is the namespace name.
344+
namespaces, the value of the label is the namespace name.
349345

350346
While NetworkPolicy cannot target a namespace by its name with some object field, you can use the
351347
standardized label to target a specific namespace.

0 commit comments

Comments
 (0)