Skip to content

Commit e1809e3

Browse files
committed
Add PortRange KEP
Signed-off-by: Ricardo Pchevuzinske Katz <[email protected]>
1 parent 7e6146f commit e1809e3

File tree

1 file changed

+9
-8
lines changed
  • keps/sig-network/2079-network-policy-port-range

1 file changed

+9
-8
lines changed

keps/sig-network/2079-network-policy-port-range/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,23 +150,24 @@ new struct:
150150
```
151151
// NetworkPolicyPort describes a port or a range of ports to allow traffic on
152152
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
159159
// port on a pod. If this field is not provided but a Range is
160160
// provided, this field is ignored. Otherwise this matches all port names and
161161
// numbers.
162-
// +optional
163-
Port *intstr.IntOrString
162+
// +optional
163+
Port *intstr.IntOrString
164164
165165
// A range of ports on a given protocol and the exceptions. If this field
166166
// is not provided, this doesn't matches anything
167167
// +optional
168168
Range *NetworkPolicyPortRange
169169
}
170+
```
170171

171172
### Validations
172173
The range will need to be validated, with the following scenarios:

0 commit comments

Comments
 (0)