puppetlabs-toy-chest / wash

Wide Area SHell: a cloud-native shell for bringing remote infrastructure to your terminal.
https://puppetlabs.github.io/wash
Apache License 2.0
180 stars 29 forks source link

Error running container to inspect K8s pvc results in panic #774

Closed MikaelSmith closed 4 years ago

MikaelSmith commented 4 years ago
2020/04/17 11:14:14 http: panic serving : interface conversion: interface {} is nil, not []uint8
goroutine 1269 [running]:
net/http.(*conn).serve.func1(0xc013d6fa40)
    /usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:1772 +0x139
panic(0x5f94e80, 0xc0164d9ec0)
    /usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/panic.go:975 +0x3e3
github.com/puppetlabs/wash/plugin/kubernetes.(*pvc).exec(0xc013b1a5a0, 0x68abbe0, 0xc0160dcf00, 0xc013ae7020, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
    /Users/michaelsmith/puppetlabs/wash/plugin/kubernetes/pvc.go:179 +0x11c
github.com/puppetlabs/wash/plugin/kubernetes.(*pvc).VolumeList(0xc013b1a5a0, 0x68abbe0, 0xc0160dcf00, 0x0, 0x0, 0x37e11d600, 0x37e11d600, 0x0)
    /Users/michaelsmith/puppetlabs/wash/plugin/kubernetes/pvc.go:186 +0xd8
...