From c066a9163b5f05222f5c929d6e096cf6f22deb0f Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Thu, 19 Dec 2019 09:58:32 +0200 Subject: [PATCH] Set HTTPProxy status on init --- pkg/router/contour.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/router/contour.go b/pkg/router/contour.go index 5ee34905..67c241f2 100644 --- a/pkg/router/contour.go +++ b/pkg/router/contour.go @@ -49,7 +49,8 @@ func (cr *ContourRouter) Reconcile(canary *flaggerv1.Canary) error { Port: int(canary.Spec.Service.Port), Weight: uint32(0), }, - }}, + }, + }, }, } @@ -68,6 +69,10 @@ func (cr *ContourRouter) Reconcile(canary *flaggerv1.Canary) error { }, }, Spec: newSpec, + Status: contourv1.Status{ + CurrentStatus: "valid", + Description: "valid HTTPProxy", + }, } _, err = cr.contourClient.ProjectcontourV1().HTTPProxies(canary.Namespace).Create(proxy)