Commit 9ac86270 authored by Brian Grant's avatar Brian Grant

Merge pull request #22641 from deads2k/deflake-rc-logs

deflake rc logs test
parents dc46ae03 8b06ef14
...@@ -900,6 +900,13 @@ var _ = Describe("Kubectl client", func() { ...@@ -900,6 +900,13 @@ var _ = Describe("Kubectl client", func() {
} }
By("confirm that you can get logs from an rc") By("confirm that you can get logs from an rc")
podNames := []string{}
for _, pod := range pods {
podNames = append(podNames, pod.Name)
}
if !checkPodsRunningReady(c, ns, podNames, podStartTimeout) {
Failf("Pods for rc %s were not ready", rcName)
}
_, err = runKubectl("logs", "rc/"+rcName, nsFlag) _, err = runKubectl("logs", "rc/"+rcName, nsFlag)
// a non-nil error is fine as long as we actually found a pod. // a non-nil error is fine as long as we actually found a pod.
if err != nil && !strings.Contains(err.Error(), " in pod ") { if err != nil && !strings.Contains(err.Error(), " in pod ") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment