Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
release: push returned shouldSync error as condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco committed Jan 16, 2020
1 parent af6e7b6 commit 14f9816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14f9816

Please sign in to comment.