Skip to content

Commit

Permalink
Merge pull request #219 from ianchen0119/fix/typo
Browse files Browse the repository at this point in the history
fix: remane LBModeNotDefault to LBModeDefault
  • Loading branch information
TrekkieCoder authored Dec 27, 2024
2 parents 8449947 + 2b57c9c commit a458635
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/agent/manager/loadbalancer/loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {
} else if lbm == "onearm" {
lbMode = api.LBModeOneArm
} else if lbm == "default" {
lbMode = api.LBModeNotDefault
lbMode = api.LBModeDefault
} else {
lbMode = api.LBModeNotSupported
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/lb.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type LbMode int32

const (
LBModeNotSupported = iota - 1
LBModeNotDefault
LBModeDefault
LBModeOneArm
LBModeFullNat
LBModeDsr
Expand Down

0 comments on commit a458635

Please sign in to comment.