From a43b3d855178fea7fcf560bf189fa628a2de98fb Mon Sep 17 00:00:00 2001 From: shuangkun Date: Thu, 7 Mar 2024 14:04:25 +0800 Subject: [PATCH] fix: change task result name from podNam to nodeId Signed-off-by: shuangkun --- workflow/controller/operator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/controller/operator.go b/workflow/controller/operator.go index 8b0a6e16b810..fea54ca7d40e 100644 --- a/workflow/controller/operator.go +++ b/workflow/controller/operator.go @@ -1387,7 +1387,7 @@ func (woc *wfOperationCtx) assessNodeStatus(pod *apiv1.Pod, old *wfv1.NodeStatus if x, ok := pod.Annotations[common.AnnotationKeyReportOutputsCompleted]; ok { woc.log.Warn("workflow uses legacy/insecure pod patch, see https://argo-workflows.readthedocs.io/en/release-3.5/workflow-rbac/") - resultName := pod.GetName() + resultName := woc.nodeID(pod) if x == "true" { woc.wf.Status.MarkTaskResultComplete(resultName) } else {