Unverified Commit b1e7408f authored by github-actions[bot]'s avatar github-actions[bot] Committed by GitHub
Browse files

Fix: fix logs to record the right publish version (#4474)

Signed-off-by: default avataryangsoon <songyang.song@alibaba-inc.com>
(cherry picked from commit 4846104c8f1dc84d0e8aea4c61fa785fecd43513)
Co-authored-by: default avataryangsoon <songyang.song@alibaba-inc.com>
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -134,7 +134,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu
if annotations := app.GetAnnotations(); annotations == nil || annotations[oam.AnnotationKubeVelaVersion] == "" {
metav1.SetMetaDataAnnotation(&app.ObjectMeta, oam.AnnotationKubeVelaVersion, version.VelaVersion)
}
logCtx.AddTag("publish_version", app.GetAnnotations()[oam.AnnotationKubeVelaVersion])
logCtx.AddTag("publish_version", app.GetAnnotations()[oam.AnnotationPublishVersion])
appParser := appfile.NewApplicationParser(r.Client, r.dm, r.pd)
handler, err := NewAppHandler(logCtx, r, app, appParser)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment