Log status update error

This commit is contained in:
stefanprodan
2019-07-10 09:55:20 +03:00
parent caea00e47f
commit 9d89e0c83f
+1
View File
@@ -225,6 +225,7 @@ func (c *Controller) syncHandler(key string) error {
cdCopy.Status.Phase = flaggerv1.CanaryPhaseInitializing
_, err := c.flaggerClient.FlaggerV1alpha3().Canaries(cd.Namespace).UpdateStatus(cdCopy)
if err != nil {
c.logger.Errorf("%s status condition update error: %v", key, err)
return fmt.Errorf("%s status condition update error: %v", key, err)
}
}