You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// log.Warn(fmt.Sprintf("Failed to get the status of the pod '%s' in the namespace '%s'", tcpdumpPod.ObjectMeta.Name, tcpdumpPod.ObjectMeta.Namespace))
// log.Warn(fmt.Sprintf("Failed to get the pod '%s' in the namespace '%s'. Will EXIT.", tcpdumpPod.ObjectMeta.Name, tcpdumpPod.ObjectMeta.Namespace))
324
+
// log.Fatal(err)
325
+
//return false, err
326
+
// }
327
+
// if tcpdumpPod.Status.Phase == "Running" {
328
+
// if tcpdumpPod.Status.Conditions[1].Type == apicore.PodReady {
329
+
// if tcpdumpPod.Status.Conditions[1].Status == apicore.ConditionTrue {
330
+
// log.Info(fmt.Sprintf("Tcpdump process in the Pod '%s' in the namesapce '%s' has completed now", tcpdumpPod.ObjectMeta.Name, tcpdumpPod.ObjectMeta.Namespace))
331
+
// break
332
+
// }
333
+
// }
334
+
// }
335
+
//}
336
+
//}
337
+
338
+
iferr!=nil {
301
339
log.Warn(fmt.Sprintf("Timeout while waiting tcpdump for pod '%s' in the namespace '%s' to complete", tcpdumpPod.ObjectMeta.Name, tcpdumpPod.ObjectMeta.Namespace))
0 commit comments