Skip to content

Commit

Permalink
little refactor
Browse files Browse the repository at this point in the history
Signed-off-by: gang.liu <[email protected]>
  • Loading branch information
izturn committed Jan 5, 2024
1 parent e155861 commit 24364ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/mocks/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
const (
StableServiceName = "argo-rollouts-stable"
CanaryServiceName = "argo-rollouts-canary"
AddOnServiceName = "argo-rollouts-add-on"
AddOnServiceName = "argo-rollouts-addon"

HTTPProxyName = "argo-rollouts"
ValidHTTPProxyName = "argo-rollouts-valid"
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func getRouteServices(httpProxy *contourv1.HTTPProxy, rollout *v1alpha1.Rollout)
otherWeight += svc.Weight
}

// the total weight must be 100
// the total weight must equals to 100
if otherWeight+canarySvc.Weight+stableSvc.Weight != 100 {
return nil, nil, 0, fmt.Errorf("the total weight must equals to 100")
}
Expand Down

0 comments on commit 24364ee

Please sign in to comment.