| I have discovered this issue, when trying to test in jenkins kubernetes slave.
sh-4.2$ oc whoami |
system:serviceaccount:wendy:jenkins |
sh-4.2$ ./mobile |
panic: stat /tmp/.kube/config: no such file or directory |
|
goroutine 1 [running]: |
main.NewClientsOrDie(0xc4203626c0, 0x11, 0xc4203626c0, 0x11, 0x172cbf0, 0x2f, 0xc420301d20, 0x30) |
/tmp/workspace/aerogear_mobile-cli_master-OSDB4U7PGLF3BGJJIABYPMSA7OVNF2OKTNMSCPV326BLMDZVAI3Q/src/github.com/aerogear/mobile-cli/cmd/mobile/main.go:110 +0x29d |
main.main() |
/tmp/workspace/aerogear_mobile-cli_master-OSDB4U7PGLF3BGJJIABYPMSA7OVNF2OKTNMSCPV326BLMDZVAI3Q/src/github.com/aerogear/mobile-cli/cmd/mobile/main.go:37 +0x60
|
If I logged in with non-service-account user, the relevant ~/.kube/config apperas and I can run mobile-cli. If possible, mobile-cli should be able tu run without ~/.kube/config, or at least present a nicer looking error instead of current panic. |