Skip to content

Commit 5c91608

Browse files
authored
Merge pull request #100 from devtron-labs/fix-helm-upgrade-with-install-flag
fixed: helm upgrade with install flag for helm apps
2 parents bcee101 + f5f534e commit 5c91608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/service/HelmAppService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ func (impl HelmAppServiceImpl) UpgradeReleaseWithChartInfo(ctx context.Context,
755755
_, err = helmClientObj.UpgradeReleaseWithChartInfo(ctx, chartSpec)
756756
if UpgradeErr, ok := err.(*driver.StorageDriverError); ok {
757757
if UpgradeErr != nil {
758-
if UpgradeErr.Err == driver.ErrReleaseNotFound {
758+
if UpgradeErr.Err == driver.ErrNoDeployedReleases {
759759
_, err := helmClientObj.InstallChart(ctx, chartSpec)
760760
if err != nil {
761761
impl.logger.Errorw("Error in install release ", "err", err)

0 commit comments

Comments
 (0)