Commit Graph
6 Commits
Author SHA1 Message Date
Sebastian Malton dc8123416e fix mocking of user-store
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2020-06-24 10:57:59 -04:00
Sebastian Malton ac039006d6 some more cleaning up
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2020-06-23 16:10:34 -04:00
Sebastian Malton 97645f4327 Clean up electron-store based stores
- Add some type script types for better editor experience
- Remove redundent global of a singleton

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2020-06-23 12:31:31 -04:00
Alexis Deruelle 6412d73a5a Fix port availability test (#333)
* Let OS allocate port number

Port availability might be tricky if some port is already in use on the
'all' interface '0.0.0.0'.

The proposed solution is to let the OS allocate the port for us using 0
as port specifier :

- first create a server instance to allocate a port number
- save port number
- close the server
- return the port number to the caller

This should be safe granted the OS doesn't reuse the port numbers on
consecutive port allocations.

see :
- about Node.js Net module : https://nodejs.org/docs/latest-v12.x/api/net.html#net_server_listen_port_host_backlog_callback
- about safety around reusing port number : https://unix.stackexchange.com/a/132524

Signed-off-by: Alexis Deruelle <alexis.deruelle@gmail.com>
2020-05-05 07:31:58 +03:00
Jari Kolehmainen d80e956870 Fix use of bundled kubectl (#241)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-11 17:48:29 +03:00
Jari Kolehmainen 1d0815abd2 Lens app source code (#119)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-03-15 09:52:02 +02:00