Skip to content

Commit 51f68eb

Browse files
authored
fix: NetworkPolicy podSelector (#2818)
Signed-off-by: dkwon17 <dakwon@redhat.com>
1 parent 75fd4ed commit 51f68eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/administration-guide/pages/configuring-network-policies.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ metadata:
8484
name: allow-from-workspaces-namespaces
8585
namespace: {prod-namespace} <1>
8686
spec:
87-
podSelector:
88-
matchLabels:
89-
app.kubernetes.io/component: che-gateway <2>
87+
podSelector: {} <2>
9088
ingress:
9189
- from:
9290
- podSelector: {}
@@ -98,7 +96,7 @@ spec:
9896
----
9997
<1> The {prod-short} namespace.
10098
The default is `{prod-namespace}`.
101-
<2> The `podSelector` only selects che-gateway pods
99+
<2> The empty `podSelector` selects all pods in the {prod-short} namespace.
102100
====
103101
+
104102

0 commit comments

Comments
 (0)