mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #93133 from abhiraut/dest
Fix NetworkPolicy describe for egress-all policies
This commit is contained in:
commit
e47fdf6e2a
@ -4157,7 +4157,7 @@ func printNetworkPolicySpecEgressTo(npers []networkingv1.NetworkPolicyEgressRule
|
||||
}
|
||||
}
|
||||
if len(nper.To) == 0 {
|
||||
w.Write(LEVEL_0, "%s%s\n", initialIndent, "To: <any> (traffic not restricted by source)")
|
||||
w.Write(LEVEL_0, "%s%s\n", initialIndent, "To: <any> (traffic not restricted by destination)")
|
||||
} else {
|
||||
for _, to := range nper.To {
|
||||
w.Write(LEVEL_0, "%s%s\n", initialIndent, "To:")
|
||||
|
@ -3480,7 +3480,7 @@ Spec:
|
||||
Except: 192.168.3.0/24, 192.168.4.0/24
|
||||
----------
|
||||
To Port: <any> (traffic allowed to all ports)
|
||||
To: <any> (traffic not restricted by source)
|
||||
To: <any> (traffic not restricted by destination)
|
||||
Policy Types: Ingress, Egress
|
||||
`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user