Skip to content

Commit

Permalink
Merge pull request #134 from loxilb-io/dsr-annotation
Browse files Browse the repository at this point in the history
gh-133 fixed. Added DSR mode annotation
  • Loading branch information
TrekkieCoder authored Apr 17, 2024
2 parents 8b0b3b8 + 84f93ae commit 67483a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/agent/manager/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {

// Check for loxilb specific annotations - NAT LB Mode
if lbm := svc.Annotations[lbModeAnnotation]; lbm != "" {
if lbm == "fullnat" {
if lbm == "dsr" {
lbMode = 3
} else if lbm == "fullnat" {
lbMode = 2
} else if lbm == "onearm" {
lbMode = 1
Expand Down

0 comments on commit 67483a5

Please sign in to comment.