File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
keps/sig-network/2079-network-policy-port-range Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -150,23 +150,24 @@ new struct:
150
150
```
151
151
// NetworkPolicyPort describes a port or a range of ports to allow traffic on
152
152
type NetworkPolicyPort struct {
153
- // The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
154
- // field defaults to TCP.
155
- // +optional
156
- Protocol *api.Protocol
157
-
158
- // The port on the given protocol. This can either be a numerical or named
153
+ // The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this
154
+ // field defaults to TCP.
155
+ // +optional
156
+ Protocol *api.Protocol
157
+
158
+ // The port on the given protocol. This can either be a numerical or named
159
159
// port on a pod. If this field is not provided but a Range is
160
160
// provided, this field is ignored. Otherwise this matches all port names and
161
161
// numbers.
162
- // +optional
163
- Port *intstr.IntOrString
162
+ // +optional
163
+ Port *intstr.IntOrString
164
164
165
165
// A range of ports on a given protocol and the exceptions. If this field
166
166
// is not provided, this doesn't matches anything
167
167
// +optional
168
168
Range *NetworkPolicyPortRange
169
169
}
170
+ ```
170
171
171
172
### Validations
172
173
The range will need to be validated, with the following scenarios:
You can’t perform that action at this time.
0 commit comments