From fdffde4dfd09cf8aa10a001140eb6f5141c6a0ac Mon Sep 17 00:00:00 2001 From: Xiangbo Ma <35767528+fourierr@users.noreply.github.com> Date: Sun, 24 Apr 2022 09:17:15 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20cherry-pick=20#3724=20to=20delete=20appr?= =?UTF-8?q?ev=20annotation.=20Signed-off-by:=20Xiangbo=20Ma=C2=A0=20(#3739)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fourierr --- pkg/controller/core.oam.dev/v1alpha2/application/revision.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/core.oam.dev/v1alpha2/application/revision.go b/pkg/controller/core.oam.dev/v1alpha2/application/revision.go index 3c2aeb10f..0d1388514 100644 --- a/pkg/controller/core.oam.dev/v1alpha2/application/revision.go +++ b/pkg/controller/core.oam.dev/v1alpha2/application/revision.go @@ -755,6 +755,7 @@ func (h *AppHandler) FinalizeAndApplyAppRevision(ctx context.Context) error { appRev.SetGroupVersionKind(v1beta1.ApplicationRevisionGroupVersionKind) // pass application's annotations & labels to app revision appRev.SetAnnotations(h.app.GetAnnotations()) + delete(appRev.Annotations, oam.AnnotationLastAppliedConfiguration) appRev.SetLabels(h.app.GetLabels()) util.AddLabels(appRev, map[string]string{ oam.LabelAppName: h.app.GetName(),