removed the debug comments

This commit is contained in:
pb
2025-05-19 18:58:33 +02:00
parent e1b0ad089c
commit 6917295fbd
2 changed files with 1 additions and 12 deletions

View File

@@ -144,7 +144,6 @@ func (k *KubernetesTools) GetPodLogger(ns string, wfName string, nodeName string
return nil, fmt.Errorf("no pods found with label workflows.argoproj.io/workflow="+ wfName + " no pods found with label workflows.argoproj.io/node-name=" + nodeName + " in namespace " + ns)
}
fmt.Println("Searching for workflows.argoproj.io/node-name=" + nodeName)
for _, pod := range pods.Items {
if pod.Annotations["workflows.argoproj.io/node-name"] == nodeName {
targetPod = pod
@@ -173,12 +172,10 @@ func (k *KubernetesTools) testPodReady(pod v1.Pod, ns string) {
}
var initialized bool
fmt.Println("============= \n " + pod.Name + " not ready yet \n==============")
for _, cond := range pod.Status.Conditions {
// It seems that for remote pods the pod gets the Succeeded status before it has time to display the it is ready to run in .status.conditions,so we added the OR condition
if (cond.Type == v1.PodReady && cond.Status == v1.ConditionTrue) || pod.Status.Phase == v1.PodSucceeded {
initialized = true
fmt.Println("============= \n " + pod.Name + " ready \n==============")
return
}
}