File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ type AdminNetworkPolicyIngressRule struct {
119
119
From []AdminNetworkPolicyPeer `json:"from"`
120
120
121
121
// Ports allows for matching traffic based on port and protocols.
122
+ // This field is a list of ports which should be matched on
123
+ // the pods selected for this policy i.e the subject of the policy.
124
+ // So it matches on the destination port for the ingress traffic.
122
125
// If Ports is not set then the rule does not filter traffic via port.
123
126
// +optional
124
127
// +kubebuilder:validation:MaxItems=100
@@ -156,6 +159,7 @@ type AdminNetworkPolicyEgressRule struct {
156
159
To []AdminNetworkPolicyPeer `json:"to"`
157
160
158
161
// Ports allows for matching traffic based on port and protocols.
162
+ // This field is a list of destination ports for the outging egress traffic.
159
163
// If Ports is not set then the rule does not filter traffic via port.
160
164
// +optional
161
165
// +kubebuilder:validation:MaxItems=100
Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ type BaselineAdminNetworkPolicyIngressRule struct {
105
105
From []AdminNetworkPolicyPeer `json:"from"`
106
106
107
107
// Ports allows for matching traffic based on port and protocols.
108
+ // This field is a list of ports which should be matched on
109
+ // the pods selected for this policy i.e the subject of the policy.
110
+ // So it matches on the destination port for the ingress traffic.
108
111
// If Ports is not set then the rule does not filter traffic via port.
109
112
// +optional
110
113
// +kubebuilder:validation:MaxItems=100
@@ -137,6 +140,7 @@ type BaselineAdminNetworkPolicyEgressRule struct {
137
140
To []AdminNetworkPolicyPeer `json:"to"`
138
141
139
142
// Ports allows for matching traffic based on port and protocols.
143
+ // This field is a list of destination ports for the outging egress traffic.
140
144
// If Ports is not set then the rule does not filter traffic via port.
141
145
// +optional
142
146
// +kubebuilder:validation:MaxItems=100
Original file line number Diff line number Diff line change 79
79
type : string
80
80
ports :
81
81
description : Ports allows for matching traffic based on port
82
- and protocols. If Ports is not set then the rule does not
83
- filter traffic via port.
82
+ and protocols. This field is a list of destination ports for
83
+ the outging egress traffic. If Ports is not set then the rule
84
+ does not filter traffic via port.
84
85
items :
85
86
description : AdminNetworkPolicyPort describes how to select
86
87
network ports on pod(s). Exactly one field must be set.
@@ -670,7 +671,10 @@ spec:
670
671
type : string
671
672
ports :
672
673
description : Ports allows for matching traffic based on port
673
- and protocols. If Ports is not set then the rule does not
674
+ and protocols. This field is a list of ports which should
675
+ be matched on the pods selected for this policy i.e the subject
676
+ of the policy. So it matches on the destination port for the
677
+ ingress traffic. If Ports is not set then the rule does not
674
678
filter traffic via port.
675
679
items :
676
680
description : AdminNetworkPolicyPort describes how to select
Original file line number Diff line number Diff line change 72
72
type : string
73
73
ports :
74
74
description : Ports allows for matching traffic based on port
75
- and protocols. If Ports is not set then the rule does not
76
- filter traffic via port.
75
+ and protocols. This field is a list of destination ports for
76
+ the outging egress traffic. If Ports is not set then the rule
77
+ does not filter traffic via port.
77
78
items :
78
79
description : AdminNetworkPolicyPort describes how to select
79
80
network ports on pod(s). Exactly one field must be set.
@@ -657,7 +658,10 @@ spec:
657
658
type : string
658
659
ports :
659
660
description : Ports allows for matching traffic based on port
660
- and protocols. If Ports is not set then the rule does not
661
+ and protocols. This field is a list of ports which should
662
+ be matched on the pods selected for this policy i.e the subject
663
+ of the policy. So it matches on the destination port for the
664
+ ingress traffic. If Ports is not set then the rule does not
661
665
filter traffic via port.
662
666
items :
663
667
description : AdminNetworkPolicyPort describes how to select
You can’t perform that action at this time.
0 commit comments