Skip to content

Commit

Permalink
Merge pull request #113 from ferryproxy/fix/route-count
Browse files Browse the repository at this point in the history
Fix route-count of route policy
  • Loading branch information
wzshiming authored Aug 30, 2022
2 parents 1c16da0 + 862898c commit 38b6e13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (c *RoutePolicyController) Sync(ctx context.Context) {
}

for _, policy := range ferryPolicies {
err := c.updateStatus(policy.Name, "Worked", len(updated))
err := c.updateStatus(policy.Name, "Worked", len(policy.Spec.Exports)*len(policy.Spec.Imports))
if err != nil {
c.logger.Error(err, "failed to update status")
}
Expand Down

0 comments on commit 38b6e13

Please sign in to comment.