Skip to content

Commit

Permalink
Add timeout and retries to router
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Feb 27, 2019
1 parent 6db8b96 commit e322ba0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/controller/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ func (c *CanaryRouter) syncVirtualService(cd *flaggerv1.Canary) error {
{
Match: cd.Spec.Service.Match,
Rewrite: cd.Spec.Service.Rewrite,
Timeout: cd.Spec.Service.Timeout,
Retries: cd.Spec.Service.Retries,
Route: route,
},
},
Expand Down Expand Up @@ -309,6 +311,8 @@ func (c *CanaryRouter) SetRoutes(
{
Match: cd.Spec.Service.Match,
Rewrite: cd.Spec.Service.Rewrite,
Timeout: cd.Spec.Service.Timeout,
Retries: cd.Spec.Service.Retries,
Route: []istiov1alpha3.DestinationWeight{primary, canary},
},
}
Expand Down

0 comments on commit e322ba0

Please sign in to comment.