GoogleContainerTools / GoogleContainerTools/skaffold

panic in waitForPods

Open
#5,581 0 comments 0 reactions 0 assignees View on GitHub
meta/testing
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

Seen in a test run locally — I had been prompted for a password to access a GHCR.io:
```
--- FAIL: TestDebug (264.16s)
--- FAIL: TestDebug/kubectl (264.16s)
panic: interface conversion: runtime.Object is *v1.Status, not *v1.Pod [recovered]
panic: interface conversion: runtime.Object is *v1.Status, not *v1.Pod

goroutine 10 [running]:
testing.tRunner.func1.1(0x5b1a440, 0xc000cb8030)
/usr/local/go/src/testing/testing.go:1072 +0x30d
testing.tRunner.func1(0xc000512480)
/usr/local/go/src/testing/testing.go:1075 +0x41a
panic(0x5b1a440, 0xc000cb8030)
/usr/local/go/src/runtime/panic.go:969 +0x1b9
github.com/GoogleContainerTools/skaffold/integration.(*NSKubernetesClient).waitForPods(0xc000b9dbf0, 0x5ff4fa0, 0xc000cd12c0, 0x1, 0x1, 0xc0002b49f0)
/Users/bdealwis/Projects/Skaffold/repo-skaffold/integration/util.go:227 +0xed1
github.com/GoogleContainerTools/skaffold/integration.(*NSKubernetesClient).WaitForPodsReady(0xc000b9dbf0, 0xc000cd12c0, 0x1, 0x1)
/Users/bdealwis/Projects/Skaffold/repo-skaffold/integration/util.go:180 +0x59
github.com/GoogleContainerTools/skaffold/integration.(*NSKubernetesClient).GetPod(0xc000b9dbf0, 0x5e45380, 0x6, 0x2202)
/Users/bdealwis/Projects/Skaffold/repo-skaffold/integration/util.go:263 +0xa6
github.com/GoogleContainerTools/skaffold/integration.TestDebug.func1(0xc000512480)
/Users/bdealwis/Projects/Skaffold/repo-skaffold/integration/debug_test.go:98 +0x265
testing.tRunner(0xc000512480, 0xc000520c60)
/usr/local/go/src/testing/testing.go:1123 +0xef
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1168 +0x2b3
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.