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

Commit

Permalink
release: reset recorded failure cond on dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco committed Apr 22, 2020
1 parent cf0480a commit d2c8711
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/helm.fluxcd.io/v1/types_helmrelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ const (
HelmReleasePhaseInstalling HelmReleasePhase = "Installing"
// Upgrading means the upgrade for the HelmRelease is running.
HelmReleasePhaseUpgrading HelmReleasePhase = "Upgrading"
// Succeeded means the installation or upgrade for the HelmRelease
// succeeded.
// Succeeded means the dry-run, installation, or upgrade for the
// HelmRelease succeeded.
HelmReleasePhaseSucceeded HelmReleasePhase = "Succeeded"
// Failed means the installation or upgrade for the HelmRelease
// failed.
Expand Down
1 change: 1 addition & 0 deletions pkg/release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ next:
action = UpgradeAction
goto next
}
status.SetStatusPhase(r.hrClient.HelmReleases(hr.Namespace), hr, v1.HelmReleasePhaseSucceeded)
logger.Log("info", "no changes", "phase", action)
case InstallAction:
logger.Log("info", "running installation", "phase", action)
Expand Down

0 comments on commit d2c8711

Please sign in to comment.