Skip to content

Commit

Permalink
option: group NodePortModeHybrid with the other modes
Browse files Browse the repository at this point in the history
Have all the nodeport modes grouped together, so it's easier to spot that
we have more than just SNAT and full-DSR.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
  • Loading branch information
julianwiedmann committed Jun 5, 2023
1 parent 79223cd commit b1bde1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/option/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1266,15 +1266,15 @@ const (
// NodePortModeDSR is for performing DSR for requests to remote nodes
NodePortModeDSR = "dsr"

// NodePortModeHybrid is a dual mode of the above, that is, DSR for TCP and SNAT for UDP
NodePortModeHybrid = "hybrid"

// NodePortAlgRandom is for randomly selecting a backend
NodePortAlgRandom = "random"

// NodePortAlgMaglev is for using maglev consistent hashing for backend selection
NodePortAlgMaglev = "maglev"

// NodePortModeHybrid is a dual mode of the above, that is, DSR for TCP and SNAT for UDP
NodePortModeHybrid = "hybrid"

// DSR dispatch mode to encode service into IP option or extension header
DSRDispatchOption = "opt"

Expand Down

0 comments on commit b1bde1a

Please sign in to comment.