Skip to content

Commit e138110

Browse files
committed
clarify optional port semantics
1 parent 2241629 commit e138110

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

geps/gep-1713/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ type ListenerEntry struct {
164164
// Port is the network port. Multiple listeners may use the
165165
// same port, subject to the Listener compatibility rules.
166166
//
167-
// If the port is specified as zero, the implementation will assign
167+
// If the port is not set or specified as zero, the implementation will assign
168168
// a unique port. If the implementation does not support dynamic port
169169
// assignment, it MUST set `Accepted` condition to `False` with the
170170
// `UnsupportedPort` reason.
@@ -385,8 +385,11 @@ spec:
385385
```
386386
### ListenerEntry
387387
388-
`ListenerEntry` is currently a copy of the `Listener` struct with some changes
389-
1. `Port` is now a pointer to allow for dynamic port assignment.
388+
`ListenerEntry` is currently a copy of the `Listener` struct with some changes noted in the below sections
389+
390+
#### Port
391+
392+
`Port` is now a pointer to allow for dynamic port assignment. If the port is unspecified or set to zero, the implementation will assign a unique port. If the implementation does not support dynamic port assignment, it MUST set `Accepted` condition to `False` with the `UnsupportedPort` reason.
390393

391394
## Semantics
392395

0 commit comments

Comments
 (0)