Skip to content

Commit

Permalink
fix: mark task result completed use nodeId instead of podname. Fixes: #…
Browse files Browse the repository at this point in the history
…12733 (#12755)

Signed-off-by: shuangkun <tsk2013uestc@163.com>
  • Loading branch information
shuangkun committed Mar 12, 2024
1 parent 03f9f75 commit d95791f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d95791f

Please sign in to comment.