Skip to content

Commit

Permalink
fix: pod name shown in log when pod deletion (#7301)
Browse files Browse the repository at this point in the history
Signed-off-by: mikutas <23391543+mikutas@users.noreply.github.com>
  • Loading branch information
mikutas authored Nov 30, 2021
1 parent 13bf153 commit 88cbea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,8 +810,8 @@ func retryWorkflow(ctx context.Context, kubeClient kubernetes.Interface, hydrato
return nil, errors.InternalErrorf("Workflow cannot be retried with node %s in %s phase", node.Name, node.Phase)
}
if node.Type == wfv1.NodeTypePod {
log.Infof("Deleting pod: %s", node.ID)
podName := PodName(wf.Name, node.Name, node.TemplateName, node.ID)
log.Infof("Deleting pod: %s", podName)
err := podIf.Delete(ctx, podName, metav1.DeleteOptions{})
if err != nil && !apierr.IsNotFound(err) {
return nil, errors.InternalWrapError(err)
Expand Down

0 comments on commit 88cbea3

Please sign in to comment.