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 (#209)
Browse files Browse the repository at this point in the history
release: push returned shouldSync error as condition
  • Loading branch information
hiddeco authored Jan 16, 2020
2 parents af6e7b6 + 14f9816 commit be8091d
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 be8091d

Please sign in to comment.