Merge pull request #93133 from abhiraut/dest

Fix NetworkPolicy describe for egress-all policies
This commit is contained in:
Kubernetes Prow Robot 2020-08-28 06:35:07 -07:00 committed by GitHub
commit e47fdf6e2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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:")

View File

@ -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
`