jinnovation / kele.el

🥤 Spritzy Kubernetes cluster management for Emacs
https://jonathanj.in/kele.el/
Apache License 2.0
72 stars 4 forks source link

`kele-resource` and `kele-get` etc should have timeout #199

Open jinnovation opened 1 month ago

jinnovation commented 1 month ago

Running kele-resource and kele-get and possibly others can sometimes hang indefinitely. In at least one case this happens when the test cluster isn't actually running, in which case running kubectl get pods returns:

E0602 12:23:02.053221    8948 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:64890/api?timeout=32s": dial tcp 127.0.0.1:64890: connect: connection refused
E0602 12:23:02.053420    8948 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:64890/api?timeout=32s": dial tcp 127.0.0.1:64890: connect: connection refused
E0602 12:23:02.054579    8948 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:64890/api?timeout=32s": dial tcp 127.0.0.1:64890: connect: connection refused
E0602 12:23:02.055671    8948 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:64890/api?timeout=32s": dial tcp 127.0.0.1:64890: connect: connection refused
E0602 12:23:02.056836    8948 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:64890/api?timeout=32s": dial tcp 127.0.0.1:64890: connect: connection refused
The connection to the server 127.0.0.1:64890 was refused - did you specify the right host or port?