From aaae8d38ead7a58ce0d615998e2d3d19174d43e5 Mon Sep 17 00:00:00 2001 From: jannfis Date: Tue, 4 May 2021 19:01:38 +0200 Subject: [PATCH] fix: Correctly marshal non-updated images (#203) Signed-off-by: jannfis --- pkg/argocd/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/argocd/update.go b/pkg/argocd/update.go index dd707e73..df79991e 100644 --- a/pkg/argocd/update.go +++ b/pkg/argocd/update.go @@ -248,7 +248,7 @@ func UpdateApplication(updateConf *UpdateConfiguration, state *SyncIterationStat // We need to explicitly set the up-to-date images in the spec too, so // that we correctly marshal out the parameter overrides to include all // images, regardless of those were updated or not. - err = setAppImage(&updateConf.UpdateApp.Application, updateableImage.WithTag(updateableImage.ImageTag)) + err = setAppImage(&updateConf.UpdateApp.Application, applicationImage.WithTag(updateableImage.ImageTag)) if err != nil { imgCtx.Errorf("Error while trying to update image: %v", err) result.NumErrors += 1