Skip to content

Commit

Permalink
build: Fix lint check
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Tang <[email protected]>
  • Loading branch information
terrytangyuan committed May 13, 2024
1 parent 72efa2f commit 95a92d6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions workflow/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,20 +762,6 @@ func getDescendantNodeIDs(wf *wfv1.Workflow, node wfv1.NodeStatus) []string {
return descendantNodeIDs
}

func isDescendantNodeSucceeded(wf *wfv1.Workflow, node wfv1.NodeStatus, nodeIDsToReset map[string]bool) bool {
for _, child := range node.Children {
childStatus, err := wf.Status.Nodes.Get(child)
if err != nil {
log.Panicf("Coudn't obtain child for %s, panicking", child)
}
_, present := nodeIDsToReset[child]
if (!present && childStatus.Phase == wfv1.NodeSucceeded) || isDescendantNodeSucceeded(wf, *childStatus, nodeIDsToReset) {
return true
}
}
return false
}

func deletePodNodeDuringRetryWorkflow(wf *wfv1.Workflow, node wfv1.NodeStatus, deletedPods map[string]bool, podsToDelete []string) (map[string]bool, []string) {
templateName := GetTemplateFromNode(node)
version := GetWorkflowPodNameVersion(wf)
Expand Down

0 comments on commit 95a92d6

Please sign in to comment.