Skip to content

Commit

Permalink
update comment for binding result
Browse files Browse the repository at this point in the history
  • Loading branch information
missylbytes committed Aug 7, 2023
1 parent c61ed2d commit 6b21b13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions control-plane/api-gateway/binding/result.go
Expand Up @@ -245,8 +245,9 @@ var (

// This custom listener validation error is used to differentiate between an errListenerPortUnavailable because of
// direct port conflicts defined by the user (two listeners on the same port) vs a port conflict because we map
// privileged ports by adding 2000. (i.e. one listener on 80 and one on 2080 would conflict).
errListenerMappedToPrivilegedPortMapping = errors.New("listener conflicts with privileged port mapped by adding 2000")
// privileged ports by adding the value passed into the gatewayClassConfig.
// (i.e. one listener on 80 with a privileged port mapping of 2000, and one listener on 2080 would conflict).
errListenerMappedToPrivilegedPortMapping = errors.New("listener conflicts with privileged port mapped by Gateway Class Config privileged port mapping setting")
)

// listenerValidationResult contains the result of internally validating a single listener
Expand Down

0 comments on commit 6b21b13

Please sign in to comment.