Skip to content

Commit a0eb554

Browse files
committed
wip
1 parent d46d11b commit a0eb554

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/appStore/installedApp/service/AppStoreDeploymentService.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ func (impl *AppStoreDeploymentServiceImpl) InstallApp(installAppVersionRequest *
203203
if impl.aCDConfig.IsManualSyncEnabled() {
204204
_ = impl.fullModeDeploymentService.SaveTimelineForHelmApps(installAppVersionRequest, timelineStatus.TIMELINE_STATUS_ARGOCD_SYNC_INITIATED, timelineStatus.TIMELINE_DESCRIPTION_ARGOCD_SYNC_INITIATED, time.Now(), tx)
205205
}
206+
} else if util.IsFluxApp(installAppVersionRequest.DeploymentAppType) {
207+
_ = impl.fullModeDeploymentService.SaveTimelineForHelmApps(installAppVersionRequest, timelineStatus.TIMELINE_STATUS_GIT_COMMIT, timelineStatus.TIMELINE_DESCRIPTION_ARGOCD_GIT_COMMIT, time.Now(), tx)
206208
}
207209
installAppVersionRequest.GitHash = gitOpsResponse.GitHash
208210
if len(installAppVersionRequest.GitHash) > 0 {
@@ -733,7 +735,7 @@ func (impl *AppStoreDeploymentServiceImpl) updateInstalledApp(ctx context.Contex
733735

734736
upgradeAppRequest.GitHash = gitOpsResponse.GitHash
735737
_ = impl.fullModeDeploymentService.SaveTimelineForHelmApps(upgradeAppRequest, timelineStatus.TIMELINE_STATUS_GIT_COMMIT, timelineStatus.TIMELINE_DESCRIPTION_ARGOCD_GIT_COMMIT, time.Now(), tx)
736-
if impl.aCDConfig.IsManualSyncEnabled() {
738+
if installedAppDeploymentAction.PerformACDDeployment && impl.aCDConfig.IsManualSyncEnabled() { //if acd then only save manifest timeline, filtering flux through this check
737739
_ = impl.fullModeDeploymentService.SaveTimelineForHelmApps(upgradeAppRequest, timelineStatus.TIMELINE_STATUS_ARGOCD_SYNC_INITIATED, timelineStatus.TIMELINE_DESCRIPTION_ARGOCD_SYNC_INITIATED, time.Now(), tx)
738740
}
739741
installedAppVersionHistory.GitHash = gitOpsResponse.GitHash

0 commit comments

Comments
 (0)