Commit Graph
65 Commits
Author SHA1 Message Date
Roman 1babc9b7c2 fix: removed describe.only for port_spec.ts 2020-06-25 15:37:39 +03:00
Roman 43b3453e24 fixed all src/** tests, moved from spec/src to source code locations 2020-06-25 15:21:28 +03:00
Roman 47ccd7c4cb fix feature install, updated bundledHelmVersion from package.json 2020-06-24 17:52:54 +03:00
Jari Kolehmainen 6852388145 linter
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-24 08:59:11 +03:00
Roman 468847c7cb Merge remote-tracking branch 'origin/master' into lens_restructure
# Conflicts:
#	src/main/kubectl.ts
#	src/main/shell-sync.ts
#	src/renderer/api/__test__/parseAPI.test.ts
#	src/renderer/api/kube-api.ts
2020-06-23 18:17:17 +03:00
Roman da9b20030f fixing tests, part 1 2020-06-23 18:11:27 +03:00
Jim Ehrismann cd66a985cc modified Kubectl.checkBinary() to test the binary for the right version instead of using the eTag (#510)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2020-06-23 15:54:18 +03:00
Sebastian MaltonandSebastian Malton f620b3198f Fix pasting unicode into terminal sometimes not working (#492)
* add LANG env with UTF-8 specified

* fix precedence of union of env objects

Signed-off-by: Sebastian Malton <smalton@mirantis.com>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-06-23 08:37:35 -04:00
Roman f4922811cc Merge remote-tracking branch 'origin/master' into lens_restructure
# Conflicts:
#	package.json
#	src/main/index.ts
#	src/renderer/api/__test__/parseAPI.test.ts
#	src/renderer/components/chart/bar-chart.tsx
#	src/renderer/components/chart/chart.tsx
#	src/renderer/components/chart/pie-chart.tsx
#	src/renderer/utils/__tests__/arrays.test.ts
#	src/renderer/utils/arrays.ts
#	yarn.lock
2020-06-22 17:09:07 +03:00
Roman 29197dcfb9 fixing circular dependencies, part 1 2020-06-22 14:56:54 +03:00
Jari Kolehmainen 5d6826771a serve react app via router
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-22 13:13:57 +03:00
Roman 1169b862b3 fix config import error, allow to run separated webpack's renderer configs for both apps 2020-06-18 14:53:23 +03:00
Jari Kolehmainen 5f0581e194 load react app from filesystem
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-18 09:03:20 +03:00
Jari Kolehmainen f49b08a787 kube-auth-proxy fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-18 08:30:32 +03:00
Roman 4e18c992d8 reverting dashboard rendering to webview, part 3 2020-06-17 17:39:30 +03:00
Roman 50ab4905dc reverting dashboard rendering to webview, part 2 2020-06-17 16:02:40 +03:00
Roman d413235ed9 reverting dashboard rendering to webview, part 1 2020-06-17 14:40:10 +03:00
Sebastian MaltonandSebastian Malton bce7aec87d Fix parseAPI not working with non-"namespaces" pathnames. (#450)
* fix parseApi not accepting versions that don't start with 'v'
* add unit tests

Signed-off-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-06-16 10:51:39 -04:00
Roman 1fa523c012 clean up / optimizations 2020-06-16 12:44:03 +03:00
Roman 606d1a9198 chore 2020-06-15 22:00:48 +03:00
Roman d6258b38d0 random micro fixes & refactoring 2020-06-15 17:47:07 +03:00
Roman bfd1a4e0b8 various configs refactoring/fixes, building project optimizations 2020-06-15 16:09:10 +03:00
Jari Kolehmainen 47082adecd Fix shell env cache (#461)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-15 14:02:44 +03:00
Roman 9fd004b214 clean up, typo fix 2020-06-14 15:35:12 +03:00
Roman 8f4db5bd53 more configuration tweaks 2020-06-13 13:11:01 +03:00
Roman ec7b8661d9 more configuration tweaks 2020-06-13 06:53:47 +03:00
Roman 9aa815bc14 refactoring, split webpack configs + get rid of electron-webpack 2020-06-12 22:23:15 +03:00
Sebastian Malton 8f0c785f58 Revert "Fix parseApi not accepting versions that don't start with 'v' (#441)" (#448)
This reverts commit 00557c9940.
2020-06-12 07:34:07 +03:00
Roman a4d66fffda fix common & static paths 2020-06-11 21:00:45 +03:00
Sebastian MaltonandSebastian Malton 00557c9940 Fix parseApi not accepting versions that don't start with 'v' (#441)
* fix parseApi not accepting versions that don't start with 'v'

Signed-off-by: Sebastian Malton <smalton@mirantis.com>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-06-11 13:19:01 -04:00
Lauri Nevala 78eeef2805 Close proxy server on app quit (#413)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-06-10 17:00:17 +03:00
Roman fe1c92c56e fix coping files build step, reuse more common/vars 2020-06-10 11:47:51 +03:00
Roman 81c2a75d73 revert base folder structure to src/* 2020-06-10 11:25:17 +03:00
Roman aa0eca2dc4 project restructuring and initial refactoring 2020-06-09 15:14:40 +03:00
Jari Kolehmainen deb4bf2f7b Integration tests using spectron (#410)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-09 13:18:24 +03:00
Lauri Nevala af24da976b Kill shell process by pid on Windows (#411)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-06-09 13:16:39 +03:00
Jari Kolehmainen ac03982c80 Change community slack urls (#405)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-05 09:11:35 +03:00
Jari Kolehmainen a7cb8d2d04 Dynamic dashboard UI based on RBAC rules (#366)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-05 08:38:56 +03:00
dave93cab 0248189c45 typo/translation correction: transit to transmit (#359)
Signed-off-by: Dave Thomas <davejonthomas@gmail.com>
2020-06-04 12:44:08 +03:00
Adam Malcontenti-Wilson e21e0b577b Replace admin check with check for access (#297)
Signed-off-by: Adam Malcontenti-Wilson <adman.com@gmail.com>
2020-05-09 18:25:34 +03:00
Lauri Nevala bba6eb743d Add support for Prometheus api prefix (#341)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-05-06 20:37:32 +03:00
Jari Kolehmainen 5c1974f07b Auto-detect prometheus installation (#343)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-05-06 18:55:49 +03: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
Lauri Nevala 724cf0c687 Allow to select Prometheus query style (#312)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-05-01 09:37:05 +03:00
Jari Kolehmainen b371e8e9f8 Fix node shell session regression (#326)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-30 17:05:45 +03:00
Jari Kolehmainen 0f708c7fc5 improve dashboard reload (#327)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-30 16:52:04 +03:00
Jari Kolehmainen 260de08c72 Update metrics feature components (#301)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-28 08:41:04 +03:00
Jari Kolehmainen b8fd4040a1 Terminal tab auto-close fixes (#314)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-28 08:31:22 +03:00
Jari Kolehmainen 81c7590732 Cache terminall shell env (#274)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-21 19:49:23 +03:00
Lauri Nevala 01e2ef50b1 Update @kubernetes/client-node to 0.11.1 (#278)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-04-20 16:17:59 +03:00