Skip to content

Commit

Permalink
fix: typo processSetWeightRoutes
Browse files Browse the repository at this point in the history
Signed-off-by: shareinto <[email protected]>
  • Loading branch information
shareinto committed Mar 24, 2023
1 parent 08889f0 commit 6b62c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollout/trafficrouting/apisix/apisix.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (r *Reconciler) SetWeight(desiredWeight int32, additionalDestinations ...v1
return err
}

httpRoutes, err := r.processSetSeightRoutes(desiredWeight, err, apisixRoute, rollout, apisixRouteName)
httpRoutes, err := r.processSetWeightRoutes(desiredWeight, apisixRoute, rollout, apisixRouteName)
if err != nil {
return err
}
Expand All @@ -91,7 +91,7 @@ func (r *Reconciler) SetWeight(desiredWeight int32, additionalDestinations ...v1
return err
}

func (r *Reconciler) processSetSeightRoutes(desiredWeight int32, err error, apisixRoute *unstructured.Unstructured, rollout *v1alpha1.Rollout, apisixRouteName string) ([]interface{}, error) {
func (r *Reconciler) processSetWeightRoutes(desiredWeight int32, apisixRoute *unstructured.Unstructured, rollout *v1alpha1.Rollout, apisixRouteName string) ([]interface{}, error) {
httpRoutes, isFound, err := unstructured.NestedSlice(apisixRoute.Object, "spec", "http")
if err != nil {
return nil, err
Expand Down

0 comments on commit 6b62c93

Please sign in to comment.