From e322ba0065c5639fc76e058cd361570bede0dc44 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Thu, 28 Feb 2019 00:05:40 +0200 Subject: [PATCH] Add timeout and retries to router --- pkg/controller/router.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller/router.go b/pkg/controller/router.go index 869f2c07..6d07ff49 100644 --- a/pkg/controller/router.go +++ b/pkg/controller/router.go @@ -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, }, }, @@ -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}, }, }