Skip to content

Commit

Permalink
fix: NetworkPolicy podSelector (#2818)
Browse files Browse the repository at this point in the history
Signed-off-by: dkwon17 <[email protected]>
  • Loading branch information
dkwon17 authored and deerskindoll committed Nov 29, 2024
1 parent 199c477 commit bb1abb8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ metadata:
name: allow-from-workspaces-namespaces
namespace: {prod-namespace} <1>
spec:
podSelector:
matchLabels:
app.kubernetes.io/component: che-gateway <2>
podSelector: {} <2>
ingress:
- from:
- podSelector: {}
Expand All @@ -98,7 +96,7 @@ spec:
----
<1> The {prod-short} namespace.
The default is `{prod-namespace}`.
<2> The `podSelector` only selects che-gateway pods
<2> The empty `podSelector` selects all pods in the {prod-short} namespace.
====
+

Expand Down

0 comments on commit bb1abb8

Please sign in to comment.