From 14f981635d0c0790cef40ddfa79b71cb51d28851 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Thu, 16 Jan 2020 11:52:21 +0100 Subject: [PATCH] release: push returned shouldSync error as condition --- pkg/release/release.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/release/release.go b/pkg/release/release.go index e9386b355..522b73005 100644 --- a/pkg/release/release.go +++ b/pkg/release/release.go @@ -184,7 +184,7 @@ func (r *Release) Sync(client helm.Client, hr *v1.HelmRelease) (rHr *v1.HelmRele if ok, err := shouldSync(logger, client, hr, curRel, chartPath, composedValues, r.config.LogDiffs); !ok { if err != nil { _ = status.SetCondition(r.helmReleaseClient.HelmReleases(hr.Namespace), *hr, status.NewCondition( - v1.HelmReleaseReleased, corev1.ConditionFalse, failReason, ErrComposingValues.Error())) + v1.HelmReleaseReleased, corev1.ConditionFalse, failReason, err.Error())) logger.Log("error", ErrShouldSync.Error(), "err", err.Error()) } return hr, ErrShouldSync