Set HTTPProxy status on init

This commit is contained in:
stefanprodan
2019-12-19 09:58:32 +02:00
parent 38b04f2690
commit c066a9163b
+6 -1
View File
@@ -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)