Skip to content

Commit ed6956e

Browse files
authored
Merge pull request kmesh-net#1003 from bfforever/lb_ospp_bugfix
fix lb_ospp bug and add ref
2 parents a346805 + cd13103 commit ed6956e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pkg/consistenthash/maglev/maglev.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
* limitations under the License.
1515
*/
1616

17+
// NOTE: THE CODE IN THIS FILE IS MAINLY REFERENCED FROM CILIUM MAGLEV
18+
// ALGORITHM( https://github.com/cilium/cilium/blob/44ec948479bb7e4511ec39f1e0d19d794ca1fba3/pkg/maglev/maglev.go)
19+
// AND ADAPTED FOR KMESH.
20+
1721
package maglev
1822

1923
import (

pkg/controller/ads/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ func newApiRouteAction(action *config_route_v3.RouteAction) *route_v2.RouteActio
490490
apiHashPolicys = append(apiHashPolicys, apiHashPolicy)
491491
default:
492492
log.Errorf("newApiRouteAction HashPolicy default, type is %T", hp.GetPolicySpecifier())
493-
return nil
493+
continue
494494
}
495495
}
496496
apiAction.HashPolicy = apiHashPolicys

0 commit comments

Comments
 (0)