Merge pull request #38 from fluxcd/fix-status

Reevaluate ready status after transient errors
This commit is contained in:
Stefan Prodan 2020-07-22 14:41:54 +03:00 committed by GitHub
commit c82600c5b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ func (r *HelmReleaseReconciler) release(log logr.Logger, hr v2.HelmRelease, sour
}
// Install or upgrade the release
success := hr.Status.Failures == 0
success := true
if errors.Is(err, driver.ErrNoDeployedReleases) {
rel, err = install(cfg, loadedChart, hr)
r.handleHelmActionResult(hr, source, err, "install", v2.InstallCondition, v2.InstallSucceededReason, v2.InstallFailedReason)