MCPcopy
hub / github.com/argoproj/argo-workflows / shouldPrintPodSpec

Method shouldPrintPodSpec

workflow/controller/operator.go:1334–1337  ·  view source on GitHub ↗

shouldPrintPodSpec return eligible to print to the pod spec

(node *wfv1.NodeStatus)

Source from the content-addressed store, hash-verified

1332
1333// shouldPrintPodSpec return eligible to print to the pod spec
1334func (woc *wfOperationCtx) shouldPrintPodSpec(node *wfv1.NodeStatus) bool {
1335 return woc.controller.Config.PodSpecLogStrategy.AllPods ||
1336 (woc.controller.Config.PodSpecLogStrategy.FailedPod && node.FailedOrError())
1337}
1338
1339// failNodesWithoutCreatedPodsAfterDeadlineOrShutdown mark the nodes without created pods failed when shutting down or exceeding deadline.
1340func (woc *wfOperationCtx) failNodesWithoutCreatedPodsAfterDeadlineOrShutdown(ctx context.Context) {

Callers 3

podReconciliationMethod · 0.95
TestPodSpecLogForAllPodsFunction · 0.80

Calls 1

FailedOrErrorMethod · 0.45

Tested by 2

TestPodSpecLogForAllPodsFunction · 0.64