fix: can not re-upgrade helm application in a failed state (#5543)

This commit is contained in:
Sekfung Lau
2023-02-21 14:42:28 +08:00
committed by GitHub
parent 7e4ba8215f
commit dbdf006fb5
2 changed files with 9 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ func (c *releaseOperator) UpgradeApplication(request UpgradeClusterRequest) erro
}
switch oldRls.Status.State {
case v1alpha1.StateActive, v1alpha1.HelmStatusUpgraded, v1alpha1.HelmStatusCreated:
case v1alpha1.StateActive, v1alpha1.HelmStatusUpgraded, v1alpha1.HelmStatusCreated, v1alpha1.HelmStatusFailed:
// no operation
default:
return errors.New("can not upgrade application now")