Skip to content

Commit 47c00ed

Browse files
authored
bulk-chart-deploy-fix (#3478)
1 parent a8c3012 commit 47c00ed

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

pkg/appStore/deployment/service/AppStoreDeploymentService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,7 @@ func (impl AppStoreDeploymentServiceImpl) GetInstalledAppVersion(id int, userId
15841584
Namespace: app.InstalledApp.Environment.Namespace,
15851585
DeploymentAppType: app.InstalledApp.DeploymentAppType,
15861586
Environment: &app.InstalledApp.Environment,
1587+
ACDAppName: fmt.Sprintf("%s-%s", app.InstalledApp.App.AppName, app.InstalledApp.Environment.Name),
15871588
}
15881589
return installAppVersion, err
15891590
}

pkg/appStore/deployment/service/InstalledAppService.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ func (impl InstalledAppServiceImpl) createChartGroupEntryObject(installAppVersio
370370
}
371371
}
372372
func (impl InstalledAppServiceImpl) performDeployStageOnAcd(installedAppVersion *appStoreBean.InstallAppVersionDTO, ctx context.Context, userId int32) (*appStoreBean.InstallAppVersionDTO, error) {
373+
installedAppVersion.ACDAppName = fmt.Sprintf("%s-%s", installedAppVersion.AppName, installedAppVersion.Environment.Name)
373374
chartGitAttr := &util.ChartGitAttribute{}
374375
if installedAppVersion.Status == appStoreBean.DEPLOY_INIT ||
375376
installedAppVersion.Status == appStoreBean.ENQUEUED ||
@@ -419,6 +420,7 @@ func (impl InstalledAppServiceImpl) performDeployStageOnAcd(installedAppVersion
419420
impl.logger.Errorw(" error", "err", err)
420421
return nil, err
421422
}
423+
installedAppVersion.GitHash = appStoreGitOpsResponse.GitHash
422424
chartGitAttr.RepoUrl = appStoreGitOpsResponse.ChartGitAttribute.RepoUrl
423425
chartGitAttr.ChartLocation = appStoreGitOpsResponse.ChartGitAttribute.ChartLocation
424426
} else {

0 commit comments

Comments
 (0)