Skip to content

Commit 0851c36

Browse files
chenyangxueHDUyangxue.chen
andauthored
fix: Workflow-controller panic when stop a wf using plugin. Fixes argoproj#9587 (argoproj#9690)
Signed-off-by: yangxue.chen <[email protected]> Signed-off-by: yangxue.chen <[email protected]> Co-authored-by: yangxue.chen <[email protected]>
1 parent 2f5e753 commit 0851c36

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

workflow/controller/exec_control.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ func (woc *wfOperationCtx) applyExecutionControl(pod *apiv1.Pod, wfNodesLock *sy
2020
}
2121

2222
nodeID := woc.nodeID(pod)
23-
node := woc.wf.Status.Nodes[nodeID]
23+
node, ok := woc.wf.Status.Nodes[nodeID]
24+
if !ok {
25+
return
26+
}
2427
//node is already completed
2528
if node.Fulfilled() {
2629
return

0 commit comments

Comments
 (0)