1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

588 Commits

Author SHA1 Message Date
chh
484de2ec21
Add +/- buttons in scale deployment popup screen (#1191)
* Add @testing-library/jest-dom and @testing-library/react for writing test cases

* Make eslint check __mocks__/*.ts files

* Mock electron.ipcRenderer.on to prevent errors in React compoment test cases

* Mock <Trans /> from @lingui/macro as a component simplely returns children components

* Use optional chaining operator (?.) to avoid TypeError: Cannot read property 'replicas' of undefined

* Add jest-fetch-mock for mocking global.fetch, activate for all test cases in jest.setup.ts

* Add basic tests for <DeploymentScaleDialog /> to ensure it initialises/renders without errors

* Add +/- button for changing desired replicas, and its test cases

* Adjust the styles of +/- buttons container to make sure it aligns with the slider

* Refactor after rebase from master

* Use var defined in vars.scss

* Add flex align-center to slider-container and remove margin-top: -4px

* Use <Icon /> to replace <i/>

* Add flex gaps to plus-minus-container

Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
2020-11-03 20:30:36 +08:00
Jari Kolehmainen
3ed7d93e91
Load symlinked extension folders (#1207)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-11-03 08:35:40 +02:00
Jari Kolehmainen
7a6f6441af
Expose more apis for KubeObjectListLayout usage (#1194)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-11-02 19:28:00 +02:00
Jari Kolehmainen
c7f77a01f9
Fix UI staleness after network issues (#1192)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-11-02 14:51:04 +02:00
Roman
32ca885596
License extension (#1174)
* License menu item should come from an extension #1141

Signed-off-by: Roman <ixrock@gmail.com>

* fix: expose `Util.openExternal` via extensions-api

Signed-off-by: Roman <ixrock@gmail.com>

* move LICENSE back to root

Signed-off-by: Roman <ixrock@gmail.com>
2020-11-02 13:03:00 +02:00
Jari Kolehmainen
da862db0b9
Fix proxy upgrade socket timeouts (#1190)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-11-02 08:17:08 +02:00
Jari Kolehmainen
70a8982c9f
Add missing kubeObjectDetailItems observable to LensRendererExtension (#1187)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-30 21:49:16 +02:00
Jari Kolehmainen
d23da79538
Expose KubeObjectListLayout to extensions (#1186)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-30 16:25:57 +02:00
Lauri Nevala
f126264d47
Telemetry improvements (#1180)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-30 16:09:59 +02:00
Jari Kolehmainen
eb5aca628d
Expose kubeObjectDetailRegistry via extension-api (#1185)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-30 15:57:32 +02:00
Alex Andreev
c5298548cb Replace xs to smallest className
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-30 15:13:52 +03:00
Alex Andreev
924cf14fd5 Removing animation visibility delay
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-30 13:05:50 +03:00
Alex Andreev
7817db39f2 Status bar improvements
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-30 13:05:22 +03:00
Jari Kolehmainen
4a6553967d
Improve how extensions can manage cluster/workspace stores (#1176)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-30 09:45:09 +02:00
Jari Kolehmainen
e4c56512e7
Fix regression caused by #1171 (#1172)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-29 12:06:37 +02:00
Alex Andreev
a583dbe6d3
Fix: path checks in custom extension loader (#1170)
* Check for path existence and directory type

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Check for package.json availability

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-29 11:23:54 +03:00
Jari Kolehmainen
66d5fdd8b5
Optimize ExtensionManager#load (#1171)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-29 09:53:25 +02:00
Jari Kolehmainen
40e228c1ac
Fix npm package missing types (#1167)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-28 12:48:37 +02:00
Jari Kolehmainen
c3bde1ad00
Fix bundled extension install on Linux/AppImage (#1163)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-28 10:16:52 +02:00
Roman
bfdbf02830
fix: correct command in Makefile for compiling extension-types, typo fix (#1160)
Signed-off-by: Roman <ixrock@gmail.com>
2020-10-27 22:41:35 +02:00
Roman
67754ffbb9
Get rid of this.disposers while registering stuff in extensions (#1148)
Signed-off-by: Roman <ixrock@gmail.com>
2020-10-27 17:07:21 +02:00
Roman
334815f71a
Tray icon (#1005)
* Tray icon #833 -- part 1

Signed-off-by: Roman <ixrock@gmail.com>

* Tray icon #833 -- part 2

Signed-off-by: Roman <ixrock@gmail.com>

* Tray icon #833 -- part 3

Signed-off-by: Roman <ixrock@gmail.com>

* Tray icon #833 -- part 4

Signed-off-by: Roman <ixrock@gmail.com>

* fix: lint / linux build failed

Signed-off-by: Roman <ixrock@gmail.com>

* allow to disable tray from preferences

Signed-off-by: Roman <ixrock@gmail.com>

* allow to tweak svg-icon before applying as tray-icon

Signed-off-by: Roman <ixrock@gmail.com>

* add checkbox indication, setActive workspace on cluster select

Signed-off-by: Roman <ixrock@gmail.com>

* fix build version (cannon find module 'react')

Signed-off-by: Roman <ixrock@gmail.com>

* - switching dark/light icon depending on os-x theme settings
- optimization: don't re-create tray icon on menu udpates (avoid blinking)

Signed-off-by: Roman <ixrock@gmail.com>

* fix: refresh icon after turning on/off + switching dark-mode

Signed-off-by: Roman <ixrock@gmail.com>

* allow to close main window and re-open from dock or tray icon

Signed-off-by: Roman <ixrock@gmail.com>

* small fix

Signed-off-by: Roman <ixrock@gmail.com>

* fix: ensure main-window from global menu

Signed-off-by: Roman <ixrock@gmail.com>

* chore

Signed-off-by: Roman <ixrock@gmail.com>

* fix: hide traffic-light buttons for tray window

Signed-off-by: Roman <ixrock@gmail.com>

* removed redundant tray window

Signed-off-by: Roman <ixrock@gmail.com>

* removed delay from base-store

Signed-off-by: Roman <ixrock@gmail.com>

* adding cluster fix (reverted changes from master)

Signed-off-by: Roman <ixrock@gmail.com>

* - hide icon in dock when main-window closed (mac-os only)
- added preferences checkbox to open app at system start-up

Signed-off-by: Roman <ixrock@gmail.com>

* handle quit app action from tray menu

Signed-off-by: Roman <ixrock@gmail.com>

* moved generating tray icons to build step

Signed-off-by: Roman <ixrock@gmail.com>

* Fix integration tests (#1080)

* Fix integration tests

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Update integration/helpers/utils.ts

Co-authored-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

Co-authored-by: Sebastian Malton <sebastian@malton.name>

* fix-build: invisible app icon when there are more files within "build/icons/*.png"

Signed-off-by: Roman <ixrock@gmail.com>

* chore

Signed-off-by: Roman <ixrock@gmail.com>

* yarn i18n.extract

Signed-off-by: Roman <ixrock@gmail.com>

* clean-up

Signed-off-by: Roman <ixrock@gmail.com>

* navigation refactoring, move out `buildUrl` to common/utils so `react` and `react-router` not required as package.json dependecies in runtime (main)

Signed-off-by: Roman <ixrock@gmail.com>

* Ignore namespace query param on integration tests (#1109)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* merge-conflicts fixes

Signed-off-by: Roman <ixrock@gmail.com>

* support page fixes

Signed-off-by: Roman <ixrock@gmail.com>

* make eslint happy again

Signed-off-by: Roman <ixrock@gmail.com>

Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2020-10-27 15:25:29 +02:00
Lauri Nevala
e2a1bac0ed
Load extensions also from local folder (#1147)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-27 14:37:41 +02:00
Jari Kolehmainen
67b8410a2c
npm package publish preparations (#1150)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-27 13:02:31 +02:00
Lauri Nevala
18ac92ebdc
Add more telemetry data (#1113)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-27 10:55:31 +02:00
Jari Kolehmainen
4e8bdace79 Merge branch 'master' into extensions-api
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-27 09:24:27 +02:00
JeongHoon Byun (a.k.a Outsider)
2a3b391870
force revision type to number for sort (#1097)
Signed-off-by: Outsider <outsideris@gmail.com>
2020-10-27 09:44:09 +03:00
Alex Andreev
e9ebd06664
Allowing any item for StatusBarRegistration (#1143)
* Adding extension's label text next to Icon

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing unused registerStatusBarItem()

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-26 17:29:54 +03:00
Roman
9b9bf47970
Refactor PageRegistration to separate registries/interfaces #1130 (#1144)
Signed-off-by: Roman <ixrock@gmail.com>
2020-10-26 15:40:34 +02:00
Roman
48d8d985ae
FIX: Duplicate "support" items in menu (#1140)
* Duplicate "support" items in menu, fix #1128

Signed-off-by: Roman <ixrock@gmail.com>

* clean up (contents moved to extensions/core-api/index.ts)

Signed-off-by: Roman <ixrock@gmail.com>
2020-10-26 13:07:26 +02:00
Jari Kolehmainen
62ae7771df
Allow extensions to define cluster features (#1125)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-26 08:21:22 +02:00
Roman
f3a0059355
Extension support page (#1112)
Signed-off-by: Roman <ixrock@gmail.com>
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
2020-10-24 09:24:54 +03:00
Lauri Nevala
2a9d39a8b9
Test is user cluster admin on cluster activate (#1116)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-23 10:05:44 +03:00
Lauri Nevala
ce995f3deb
Implement cluster metadata detectors (#1106)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-22 21:45:54 +03:00
Jari Kolehmainen
99db7aca19
Allow extensions to register kube-object menus + details (#1108)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-22 21:41:20 +03:00
Jari Kolehmainen
91bef77997
Extension store base class + rename main/renderer-extensions -> extensions (#1107)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-21 13:55:50 +03:00
Jari Kolehmainen
8f8dd9eb45
Extension npm packaging preparations (#1103)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-20 20:25:51 +03:00
Jari Kolehmainen
d25e2f015b
Restructure extension apis (#1101)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-20 14:45:15 +03:00
Jari Kolehmainen
c566c85351
Move tracker to telemetry extension (#1092)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-19 11:56:08 +03:00
steve richards
c0b8d472a0
Add LoadBalancer information to the Ingress view (#1064)
Signed-off-by: Steve Richards <srichards@mirantis.com>
2020-10-16 17:13:18 +03:00
steve richards
bf20a15819
Added Last Status information for Container (#1041)
Signed-off-by: Steve Richards <srichards@mirantis.com>
2020-10-16 17:12:13 +03:00
Lauri Nevala
bdd0f0b604
Fetch Helm available repositories from Artifact HUB cache (#1090)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-16 17:10:37 +03:00
Alex Andreev
073b8a43f2
Preloading previous logs on scroll (#1079)
* Preload logs when scrolled to top

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding JumpToBottom button

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Moving jump-to-bottom button to right

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding old/new logs separator

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Increase font-size in jump to bottom button

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Moving newLogsSince determination out of component

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Move newLogSince from storage data to observable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove notiifications on log loading errors

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Transform logs into array in store

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Clean up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove excessive join('\n\)s

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding pod and namespace data to log controls panel (#1083)

* Move log controls into separate file

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Changing prev container logs icon

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing 'Logs' from the tab title

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove unused string template quotes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Hide JumpToBottom btn on error

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove mention about dialog

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-16 12:46:16 +03:00
steve richards
6e4fa31a49
Sort Pod environment values in alphabetical order (#1075)
* Sort Pod environment values in alphabetical order

Fixes: #739

Signed-off-by: Steve Richards <srichards@mirantis.com>

* Consolidated to a single lodash import. Corrected Lint failure

- Removed the additional import of flatten and updated as needed;
- Changed the variabled `orderedEnv` to be a const;

Signed-off-by: Steve Richards <srichards@mirantis.com>

Co-authored-by: Steve Richards <srichards@mirantis.com>
2020-10-16 10:46:30 +03:00
Jari Kolehmainen
a00d26149c Merge branch 'master' into extensions-api
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-16 07:58:47 +03:00
Lauri Nevala
81575b333a
Fix KubeAuthProxy unit tests (#1084)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-14 17:10:58 +03:00
Sebastian Malton
770c6b80f1
move autobind and debouncePromise to common/utils (#1081)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-10-14 14:36:19 +03:00
Jari Kolehmainen
78f6f8ef54
Fix bundled kubectl path on dev env (#981)
* fix bundled kubectl path on dev env

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix specs

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-14 14:35:33 +03:00
steve richards
db9af88d91
Updated regex for isUrl to allow for an empty string (#1049)
Updated regex for isUrl to allow for an empty string aswell as a correct URL.

Signed-off-by: Steve Richards <srichards@mirantis.com>

Co-authored-by: Steve Richards <srichards@mirantis.com>
2020-10-14 14:34:04 +03:00
Lauri Nevala
3a6b499fe3 Merge branch 'extensions-api' of github.com:lensapp/lens into extensions-api 2020-10-14 09:15:46 +03:00
Jari Kolehmainen
45abc740e9
Initial telemetry extension (#1067)
* initial telemetry extension

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* Fix preferences saving and default value

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-13 12:57:38 +03:00
Alex Andreev
83b8fa9d98
Ability to show previous terminated container logs (#1074)
* Show previous terminated container logs

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix for parsing error object

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-12 15:58:18 +03:00
steve richards
4fcac6b0d0
Added additional checks on the command used in the Exec plugin in a kubeconfig (#1013)
- Added check to see if the program being referenced in the command field of the
exec object in the User construct exists. If it doesn't an error will be raised.
If more than 1 context is selected when adding a kubeconfig then valid contexts
will be added and any with an error will not be.

Signed-off-by: Steve Richards <srichards@mirantis.com>

Co-authored-by: Steve Richards <srichards@mirantis.com>
2020-10-12 10:20:08 +03:00
Lauri Nevala
daa4992f2b
Start authentication proxy when opening cluster settings (#1063)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-12 10:10:30 +03:00
Alex Andreev
dc07d646ec
Align NamespaceSelect and SearchField (#1073)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-12 10:08:57 +03:00
Alex Andreev
f4f0cba6ca
Moving Pod logs into Dock panel (#1043)
* Moving pod logs into Dock

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Always set up default container

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Open existent tab if fount

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Moving logs load and properties into store

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Setting a refresher

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding showButtons prop to InfoPanel

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Hiding sequence number in log tabs

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing PodLogsDialog

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing unused PodLogsDialog import

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Tiny cleaning

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* A bit of cleaning up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Hiding drawer when opening logs

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-11 19:36:19 +03:00
Sebastian Malton
0960259279
Add some basic unit tests for the following files: (#1050)
* Add some basic unit tests for cluster, kube-auth-proxy, and kubeconfig-manager

- src/main/cluster.ts
- src/main/kube-auth-proxy.ts
- src/main/kubeconfig-manager.ts

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-10-09 11:25:20 -04:00
Jari Kolehmainen
4f98a01a8b
Improve how extension-api is exposed/loaded (#1055)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-09 14:12:40 +03:00
Jari Kolehmainen
aa864fc199
Support extensions in main process (#1032)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-08 11:52:45 +03:00
Lauri Nevala
abe6a4e0b1
Fix cluster dashboard opening when cluster is initally offline (#1042)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-07 15:27:48 +03:00
Sebastian Malton
21bdc6ba8f
add resizing capabilities to the side bar (#1009)
* add resizing capabilities to the side bar

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-10-06 13:33:23 -04:00
Lauri Nevala
0f57ea91b1 Merge branch 'master' into extensions-api 2020-10-06 14:52:27 +03:00
Roman
c78b071da3
TabLayout should not be part of LensRuntimeRendererEnv (#1029)
Signed-off-by: Roman <ixrock@gmail.com>
2020-10-06 14:38:28 +03:00
Jari Kolehmainen
2b6f283e1b
Allow extensions to have external dependencies (#1018)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-10-05 16:39:58 +03:00
Sebastian Malton
87061cee9e
Refactor testing harness to use defaults (#808)
* Refactor testing harness to use defaults

- Move tests into defaultly named test folders
- Use default test suffix of ".test" instead of "_test"
- Make cluster-store tests unit tests by adding more
    nesting, so that order of tests doesn't matter

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-10-02 10:05:59 -04:00
Alex Andreev
14d3d88278
Fix: check for location bevore navigate (#1016)
* Check for location before navigate

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Handling every location type

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-02 14:33:29 +03:00
Alex Andreev
68317453c1
Adding space after drawer badges (#1014)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-02 12:49:03 +03:00
Alex Andreev
af71834676
Moving dock info panel to the top (#1007)
* Moving EditorPanel to the top

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Preventing save with empty yaml

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Make tooltips in @withTooltip narrower

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Not showing api errors in icon

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Success notification for create resource operation

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Button outlined style

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Making second button to stay outlined

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fine-tuning dock info panel colors

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing border-radius from ace-editor

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-10-02 09:32:20 +03:00
Sebastian Malton
9ecfeb316c
cleanup Draggable into ResizingAnchor (#989)
* Rename `Draggable` as `ResizingAnchor` since that is what it is used for and shouldn't be mistaken as a general draggable item

* Refactor `ResizingAnchor` to be much more smart about how it handles mouse movements. Allow it to know which direction the resizing should be in allowing it to produce exact resized values.

* Add event handlers for the min and max extents so that actions can be triggered when those extents are passed (in either direction)

* Add double click support

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-10-01 11:37:27 -04:00
Lauri Nevala
135282da91
Fix cluster dashboard opening and state refreshing (#1006)
* Fix cluster dashboard opening and state refreshing

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-10-01 11:16:20 +03:00
Jari Kolehmainen
de3849d22c Merge branch 'master' into extensions-api 2020-09-30 19:47:13 +03:00
Alex Andreev
3d0b843891
Preventing drawer close on secret's click (#1003)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-30 16:54:21 +03:00
Jakub Štiller
f596b3c45c
Fix CPU/Memory usage metrics when using prometheus operator. (#632)
Cluster CPU and Memory usage cannot be sum by node as it is rendered as single cluster metrics. Without this changes, the cluster graphs (standard and pie) shows data only from first (or latest) nodes.

For pod specific metrics, when we use prometheus operator the `container_` metics are doubled. Restric search to get those have image tag.

Signed-off-by: Jakub Štiller <stiller@2n.cz>

Co-authored-by: Jakub Štiller <stiller@2n.cz>
2020-09-30 14:56:22 +03:00
Jari Kolehmainen
8823c6f5f2
Terminal: set NO_PROXY env for localhost communication (#982)
* terminal: set NO_PROXY env for localhost communication

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-30 14:08:42 +03:00
Lauri Nevala
c049918d25
Add support for Docker Enterprise Container Cloud metrics (#998)
* Add support for Docker Enterprise Container Cloud metrics

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-30 14:02:18 +03:00
Jari Kolehmainen
a92a6ed0b0
Expose react to extensions (#1000)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-30 11:34:14 +03:00
Jari Kolehmainen
bec288d22e
fix extension-api module alias on production (#1001)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-30 11:33:49 +03:00
Sebastian Malton
c542ad0348
refactor overview statuses to be more DRY (#912)
* refactor overview statuses to be more DRY

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-09-29 11:25:29 -04:00
Jari Kolehmainen
82c4177cb9
Move in-tree extensions to top-level folder (#993)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-29 16:45:42 +03:00
Alex Andreev
459742556b
Fix CRD conditions rendering (#994)
* Using reason field if no type provided

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Lowecasing condition badge class

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-29 10:58:16 +03:00
Roman
5ec6751ab4
Extensions api types (#985)
Signed-off-by: Roman <ixrock@gmail.com>
2020-09-29 07:37:25 +03:00
Sebastian Malton
34e141e517
make namespace filter multi select and change onChange (#987)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-09-28 10:30:23 -04:00
Yangjun Wang
bc228c9e36
display last-applied-configuration annotation in detail-view, but filter it in search fields still (#943)
Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>

Co-authored-by: Yangjun Wang <yangjun.wang@wartsila.com>
2020-09-28 17:24:54 +03:00
Alex Andreev
163b34463b
Removing pre-defined input type (#984)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-28 14:59:35 +03:00
Lauri Nevala
13b99afa21
Add migration to fix kubeconfig paths that point to snap config dir (#972)
* Add migration to fix kubeconfig paths that point to snap config dir

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-25 15:13:20 +03:00
Lauri Nevala
950fd6528f
Fix kubeconfig fetching for service account (#966)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-25 15:04:48 +03:00
Lauri Nevala
265aa41968
Fix reading CRD conditions (#967)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-25 12:59:12 +03:00
Lauri Nevala
d0f1d7b74b
Do not filter contexts when adding new clusters (#969)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-25 12:58:38 +03:00
Jari Kolehmainen
51b21347da
cleanup proxy upgrade handler (#963)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-24 18:14:57 +03:00
Sebastian Malton
5401c99298
Helm components should always use version information (#949)
* clean up code to catch rejections

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-09-24 09:54:26 -04:00
Jari Kolehmainen
d20f890ddb
Fix spdy proxy (#962)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-24 16:53:49 +03:00
Sebastian Malton
5b6b19036d
dropdowns should have 'cursor: pointer;' (#956)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-09-24 09:21:56 -04:00
Jari Kolehmainen
11ea9d2098
Fix iframe ipc flakyness after cluster is removed (#954)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-24 15:24:39 +03:00
Lauri Nevala
386e7c63bb
Convert bytes in memory BarChart properly (#947)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-24 14:54:09 +03:00
Lauri Nevala
fe4a63a955
Allow to add the same cluster to multiple workspaces (#961)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-24 14:30:44 +03:00
Sebastian Malton
b88c0d4fbf
Make download dir option consistent with other settings (#875)
* make download dir option consitent with other settings

* make path to kubectl setting consistent

Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-23 08:57:51 -04:00
Sebastian Malton
2f53e76060
reduce height on draggable-top and only render it on macos (#942)
* reduce height on draggable-top and only render it on macos

* move drag bar out of app and into bootstrap

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-09-23 08:57:34 -04:00
Roman
9a402eab3d fix: example-extension broken after merging master
fix: removed devtools warnings from extension-api bundle

Signed-off-by: Roman <ixrock@gmail.com>
2020-09-23 12:10:02 +03:00
Roman
91b4823ec6 Merge branch 'master' into extensions-api
# Conflicts:
#	src/renderer/components/app.tsx
#	src/renderer/components/cluster-manager/clusters-menu.scss
#	src/renderer/components/cluster-manager/clusters-menu.tsx
#	src/renderer/components/layout/main-layout.tsx
#	src/renderer/components/layout/sidebar.tsx
2020-09-23 11:49:16 +03:00
Sebastian Malton
7f6ae6e8c3
Auto select one and only cluster from pasted config (#888)
* Auto select one and only cluster from pasted config

- Disable add button with tooltip if no clusters are selected
- Add functionality to tooltip to display correctly over disabled
  elements

* feature should work of any method of adding kube config

Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-09-21 16:11:43 -04:00
Yangjun Wang
cb3ab09b42
fix side bar scrolls after clicking on lower item (#928)
* fix bug: side bar scrolls after clicking on lower item

Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>

* fix issue main area missing issue, add mobx observer to TabLayout

Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>

Co-authored-by: Yangjun Wang <yangjun.wang@wartsila.com>
2020-09-21 22:18:41 +03:00
Sebastian Malton
9a10db837e
fix Notifications blocking items not visually under them from being interacted with (#915)
* fix Notifications blocking items not visually under them from being interacted with

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-09-21 14:47:44 -04:00
Lauri Nevala
78ab6f016b
Fix background of What's New page with white theme (#940)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-21 16:47:51 +03:00
Yangjun Wang
44190c7321
Get focus to dock tab content after resize (#935)
Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>

Co-authored-by: Yangjun Wang <yangjun.wang@wartsila.com>
2020-09-21 16:37:20 +03:00
Yangjun Wang
25aac57a86
fix bug - deleted namespace does not get auto unselected (#930)
* fix bug - deleted namespace does not get auto unselected

Signed-off-by: Yangjun Wang <yangjun.wang@wartsila.com>
2020-09-21 15:08:44 +03:00
Lauri Nevala
299eceaee4
Optimise cluster activate and refresh (#938)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-21 13:20:50 +03:00
Lauri Nevala
3f8a2b09a0
Fix service account's imagePullSecrets rendering if secret is not found (#908)
* Fix service account's imagePullSecrets rendering if secret is not found

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-18 12:33:01 +03:00
Sebastian Malton
9a9f50ab34
add a zero width space to Badges to fix double click highlighting issue (#914)
* add a zero width space to Badges to fix double click highlighting issue

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2020-09-18 09:33:43 +03:00
Jim Ehrismann
e84082dc6d
Reduce the main BrowserWindow minimum size (#916)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2020-09-18 08:55:05 +03:00
Lauri Nevala
0fedba5b66
Fix ingress points rendering if no data available (#906)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-17 16:06:11 +03:00
Lauri Nevala
e5a365d00e
Fix ws upgrade for terminal session (#900)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-16 23:43:03 +03:00
Jari Kolehmainen
c2afd026cc
Inject Host header to k8s client requests (#887)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-16 20:54:36 +03:00
Lauri Nevala
ec4d859ef7
Remove extra refreshEvents polling (#892)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-16 16:11:40 +03:00
Sebastian Malton
1e96c5a2d4
fix placement of the add new cluster number (#876)
Signed-off-by: Sebastian Malton <smalton@mirantis.com>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-09-15 09:07:16 -04:00
Alex Andreev
c6b3738a75
App reload in cluster settings (#858)
* Passing extra routes where to find clusterId

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Cluster settings refactorings

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Clean up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-12 16:35:04 +03:00
Jari Kolehmainen
cc973bb9ef
fix isPath message (#860)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-11 17:02:56 +03:00
Lauri Nevala
9d9867f674
Add path to auth proxy url if present in cluster url (#856)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-11 14:24:24 +03:00
Lauri Nevala
77895d40b0
Move verbose log lines to silly level (#859)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-11 14:11:36 +03:00
Lauri Nevala
b67575d6f0
Fix proxy kubeconfig file permissions (#857)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-11 13:30:24 +03:00
Roman
a3dc928430 Merge branch 'master' into extensions-api
# Conflicts:
#	package.json
#	src/common/cluster-store.ts
#	src/renderer/bootstrap.tsx
#	src/renderer/components/cluster-manager/clusters-menu.tsx
#	static/RELEASE_NOTES.md
#	webpack.dll.ts
2020-09-11 12:29:38 +03:00
Roman
7722f443eb
[FIX]: Cluster dashboard not rendered (#848)
* Cluster dashboard not rendered, fix #811

Signed-off-by: Roman <ixrock@gmail.com>

* refactoring

Signed-off-by: Roman <ixrock@gmail.com>

* actual fix

Signed-off-by: Roman <ixrock@gmail.com>

* reverted back reconnect check in cluster.activate()

Signed-off-by: Roman <ixrock@gmail.com>

* fix: cluster.activate() should not start reconnect on init (if not accessible)

Signed-off-by: Roman <ixrock@gmail.com>
2020-09-11 12:02:25 +03:00
Lauri Nevala
e005985621
Fix cluster's apiUrl (#846)
* Fix cluster's apiUrl

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-10 15:15:00 +03:00
Alex Andreev
fd3eb41179
Setting new workspace name restrictions (#832)
* Preventing to create empty and existent workspaces

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Autofocusing name input

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Save workspace when hitting Enter

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Refactoring of save workspace process

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-10 11:35:17 +03:00
Alex Andreev
e11cbc19fe
Fixing Dialog Escape keypress behavior (#831)
* Replacing dialog keypress target

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding explanatory comments

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-10 09:31:23 +03:00
Sebastian Malton
8d1f0efe80
remove make-syncronous and file-type calls from migration (#844)
* remove make-syncronous and file-type calls from migration

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-09-09 16:41:25 -04:00
Roman
5daf53e6cb
Extensions-api: initial hello-world example (#817)
Signed-off-by: Roman <ixrock@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-09 16:19:02 +03:00
Roman
f1b03990ea
Extensions loading (#795)
Signed-off-by: Roman <ixrock@gmail.com>

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-09 13:00:25 +03:00
Alex Andreev
a4eff11ee2
Refresh input values on cluster change (#814)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-08 10:42:53 +03:00
Lauri Nevala
653683c802
Update logo (#819)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-08 10:29:20 +03:00
Alex Andreev
0de4e16c9f
More cluster menu fixes (#815)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-07 14:09:56 +03:00
Lauri Nevala
4250523fe4
Allow user to configure kubectl binary preferences (#800)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-04 22:50:50 +03:00
Sebastian Malton
8f94f4a3da
add drag and drop capabilities for the order of cluster icons on the side bar (#623)
* add drag and drop capabilities for the order of cluster icons on the side bar

* add type annotations for better clarity

* fix clusters staying in previously icon reordered workspaces

* add some tests to cluster-store

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-09-04 13:32:27 -04:00
Jim Ehrismann
7d2215b5b4
Restrict file permissions to only the user for pasted kubeconfigs that are kept in the app dir (#805)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2020-09-04 20:28:51 +03:00
Alex Andreev
435baaea00
Close Preferences and Cluster Setting on Esc keypress (#804)
* Close Preferences on Esc key

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Close Cluster Settings on Esc

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-04 11:27:08 +03:00
Alex Andreev
7274658b51
Wider Select box for Helm chart installation (#803)
* Fixing typo

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fine-tuning select to show long items

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-04 10:03:18 +03:00
Trevor Nichols
26e031fc58
Update CRD api to use preferred version and implement v1 differences (#718)
* Update CRD api to use preferred version and implement v1 differences

Signed-off-by: Trevor Nichols <trevor@nichols.id.au>

* Fix unit test failure

Signed-off-by: Trevor Nichols <trevor@nichols.id.au>

* Register alternate API base URL if preferred version changes.

Signed-off-by: Trevor Nichols <trevor@nichols.id.au>

* Adjust for validation moving to the version.schema

Signed-off-by: Trevor Nichols <trevor@nichols.id.au>
2020-09-04 09:39:31 +03:00
Jari Kolehmainen
ca2307eb66
Remove double copyright (#802)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-09-04 07:29:20 +03:00
Alex Andreev
43f3044273
Using import type statement (#793)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-02 17:11:46 +03:00
Lauri Nevala
61c3e32a7c
Try to reconnect non-accessible clusters on activate (#789)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-02 15:28:02 +03:00
Lauri Nevala
b77249fbc8
Update help texts for Add cluster (#785)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-02 13:08:42 +03:00
Alex Andreev
5788c44303
Reload active dashboard view (#783)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-02 10:05:49 +03:00
Alex Andreev
5e2ef2f64f
Adding margin to last cluster icon (#788)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-02 09:48:28 +03:00
Lauri Nevala
5e016182e9
Do not set app to dev mode if debugging flag is passed (#774)
* Do not set app to dev mode if debugging flag is passed

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-02 09:45:55 +03:00
Lauri Nevala
97b2916242
Update Kubectl version map (#780)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-02 08:09:30 +03:00
Lauri Nevala
9c37c69fb4
Allow to override logger for LensBinary (#776)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-02 08:08:40 +03:00
Sebastian Malton
cb3e19f2f0
Allow for users to enabled release mode debugging (#481)
* Allow for users to enabled release mode debugging by setting the env var `DEBUG` to "true"

* Adds file logging so that in production logs can still be
  obtained. Those log files are limited the size and number and are rotated automatically

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-09-01 09:20:59 -04:00
Lauri Nevala
533646cba5
Detect invalid bundled kubectl (#778)
* Test bundled kubectl

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-09-01 14:28:59 +03:00
Alex Andreev
f4d262b294
Fixing app crash when iterating Events without 'kind' prop defined (#743)
* Checking for 'kind' to be defined
Inside 'involvedObject' of Event

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fixing resource var definition

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Reverting to link rendering in Events

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Explicitly return emty link if no 'kind' available

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing lowercase of url path

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-09-01 10:36:44 +03:00
Roman
505a5c7d9f
- fix: too narrow sidebar without clusters #755 (#765)
- fix: navigate to landing on workspace switch

Signed-off-by: Roman <ixrock@gmail.com>
2020-08-29 14:00:29 +03:00
Roman
b8994a453f
Allow user to select Kubeconfig from filesystem (#740)
* Allow user to select Kubeconfig from filesystem, fix #738

Signed-off-by: Roman <ixrock@gmail.com>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-28 08:43:51 +03:00
Lauri Nevala
0a1f952e13
Display path to cluster's kubeconfig file in cluster settings (#751)
* Display path to cluster's kubeconfig file in cluster settings

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-08-27 16:15:56 +03:00
Lauri Nevala
4196576e99
Remove cluster view when removed from store (#758)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-08-27 16:14:56 +03:00
Lauri Nevala
4b3570a190
Fix manifests order for Metrics feature (#752)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-08-27 14:14:34 +03:00
Lauri Nevala
ecbdb326e3
Use proxy kubeconfig for shell and resource applier (#754)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-08-27 14:11:32 +03:00
Lauri Nevala
659d8bd0ab
Wait until cluster is ready before initializing cluster dashboard (#748)
* Wait until cluster is ready before initializing cluster dashboard

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-08-27 08:43:17 +03:00
Alex Andreev
c31004e677
Fixing cluster icon badge overflow (#749)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-27 08:42:18 +03:00
Alex Andreev
510d3d4760
Thinner bottom bar (#747)
* Making bottom bar slightly thinner

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Moving workspace selector to left

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-26 11:32:15 +03:00
Alex Andreev
886fba136a
Fixing minor light theme issues (#744)
* Cluster Menu scrolling & tooltip fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Removing forgotten console.log()

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix Landing Page in light theme

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Updating Chart on every componentDidUpdate

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-25 20:09:00 +03:00
Sebastian Malton
a12aa8a04f
add cluster icon migration code (#673)
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2020-08-25 16:42:30 +03:00
Nox
8f778ea379
Add cronjob trigger (#694)
Signed-off-by: Nox <aurelien.gaston@krondor.fr>

Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-08-25 10:55:12 +03:00
Alex Andreev
0f11b03692
Switching color theme globally (#728)
* Adding cluster menu colors

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding theme class name flag into #app

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Cleaning up mixins

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Tuning up Wizard Layout styles

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Using theme-light global flag

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Minor style fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Using .theme-light flag across components

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Set theme as @computed value

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Preventing Drawer slide-in scroll flickering

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Setting background for settings views

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Minor layout fixes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Switching AceEditor theme reactively

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Cleaning up

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-24 10:24:05 +03:00
Alex Andreev
c7b11f86af
Adding basic menu accelerators (#729)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-24 09:43:14 +03:00
Tim Urista
4a8d1ab205
Set max timeout to 15 seconds to prevent failed opening of local port (#732)
Signed-off-by: Tim Urista <timothy.urista@gmail.com>
2020-08-24 09:27:30 +03:00
Roman
6e645eade0
Random fixes (#727)
* extract missing localizations from last master <- pr-merge

Signed-off-by: Roman <ixrock@gmail.com>

* fix: prevent app-crash in preferences in case of incorrect http-proxy value

Signed-off-by: Roman <ixrock@gmail.com>

* fix: don't repeat ipc-sync message to main renderer process/window when sending to frames

Signed-off-by: Roman <ixrock@gmail.com>
2020-08-21 15:08:09 +03:00
Dan Slinky @ Cookpad
81a0c432c6
Add support for PodDisruptionBudgets (#452)
Signed-off-by: Dan Slinky <dan-slinky@cookpad.jp>
2020-08-21 11:39:02 +03:00
Roman
b6a6dadfce
Fix: sync in sub-frames for common-stores are broken (#724)
* fix: sync in sub-frames for common-stores are broken

Signed-off-by: Roman <ixrock@gmail.com>

* clean up

Signed-off-by: Roman <ixrock@gmail.com>
2020-08-20 20:33:06 +03:00
Roman
86e1e23ccd
fix: incorrect path to install/re-install features (#723)
Signed-off-by: Roman <ixrock@gmail.com>
2020-08-20 18:27:20 +03:00
Gerasimos (Makis) Maropoulos
1cf446ea98
Fix misspell (#662)
Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>
2020-08-20 10:21:54 +03:00
Lauri Nevala
f958e1c760
Return KubeObject for successfully created unknown resources (#617)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-08-20 10:04:12 +03:00
Roman
5670312c47
Migrating Vue components to React and stores refactoring (#585)
Signed-off-by: Roman <ixrock@gmail.com>

Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-20 08:53:07 +03:00
Trevor Nichols
905bbe9d3f
Handle status values that contains an object (#693)
Signed-off-by: Trevor Nichols <trevor@theredfox.group>
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2020-08-19 17:49:17 +03:00
Jim Ehrismann
0a5626fdb7
Added load-balancer hostname/IP to ingress details (#675)
* Added load-balancer hostname/IP to ingress details

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* lint fixes

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2020-08-14 11:04:39 -04:00
Jari Kolehmainen
81796af508
Update copyright, eula and contact details (#690)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-08-14 16:05:57 +03:00
Alex Andreev
30c14eb6da
Fixing role binding details view without subjects (#688)
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
2020-08-14 14:39:28 +03:00
Sebastian Malton
e249769562
Add support for customreasourcedefinitions under the v1 API (#658)
* Add support for customreasourcedefinitions under the v1 API
* moving store and views to use v1

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-08-12 09:08:40 -04:00
Daniil Kolesnik
acfd1828eb
fix: 🐛 Change kind to "Enpoints" in renderer (#672)
 Closes: #646

Signed-off-by: Daniil Kolesnik <not.randome@gmail.com>
2020-08-12 09:14:37 +03:00
Sebastian Malton
858ab88940
use the Kubernetes regex for matching system names (#659)
* use the Kubernetes regex for matching system names

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-08-07 16:24:47 -04:00
Jim Ehrismann
693017d2ec
adding port-forward for containers in pods (#528)
* adding port-forward for containers in pods

address review comments

use more idiomatic approach for async code

move some files in advance of merge conflict with Lens restructure work

* Separate the port forward links in the UI (so they don't all spin when one link is clicked)

* minor fixes

* addressed review comments (replaced <p> with <div>, moved key attribute to proper element)

* fix lint issue

* removed extraneous <div> from pod container port details

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2020-08-07 11:30:37 -04:00
Sebastian Malton
0c3be9bbae
Fix Resource Quota Rendering (#624)
* add parsing of quota values which are non-numeric in the general case

* add unit tests

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-08-04 13:14:02 -04:00
Lauri Nevala
7f65f1ea06
Fix CRD api parsing (#622)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-07-31 09:50:57 -04:00
Sebastian Malton
4bd29a6d88
fix format duration rounding days error (#582)
* fix format duration rounding days error
* added tests

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

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
2020-07-15 09:45:52 -04:00
Jussi Nummelin
55687b7d35
Kubeconfigs as file references (#466)
Signed-off-by: Jussi Nummelin <jussi.nummelin@gmail.com>
Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-07-03 16:53:23 +03:00
Lauri Nevala
c15aa7972c
Remove redundant applyHeaders method (#469)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-07-03 11:22:58 +03:00
Jari Kolehmainen
69778d5dcc
Show devtools always in menu (#559)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-07-03 11:13:53 +03:00
Jari Kolehmainen
097776411f
Use LensDev on development environment (#557)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-07-03 08:32:12 +03:00
Roman
5f4e1253a9
Replace webview tag to iframe (#554)
Signed-off-by: Roman <ixrock@gmail.com>
2020-07-02 17:31:59 +03:00
Roman
d90be46a1f
use common vars in router, minor clean up (#551)
Signed-off-by: Roman <ixrock@gmail.com>
2020-07-02 17:21:38 +03:00
Roman
b7974827d2
Lens restructure (#540)
Signed-off-by: Roman <ixrock@gmail.com>
2020-06-30 14:35:16 +03:00
Lauri Nevala
907e96c7a0
Fix lint issue (#516) 2020-06-24 13:43:12 +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 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
Lauri Nevala
b8c1d78157
Open external links in web browser (#506) 2020-06-22 23:27:49 +03:00
Sebastian 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
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
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
Sebastian 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
Jari Kolehmainen
8e514df70e
Track telemetry pref changed event (#445)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-11 13:50:43 +03: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
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
Jon Stelly
9b680640c9
Add arch node selector for hybrid clusters (#400)
Signed-off-by: Jon Stelly <967068+jonstelly@users.noreply.github.com>
2020-06-05 08:41:08 +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
Jari Kolehmainen
50dfd4fa63
Unify scrollbars/paddings across supported OS (#367)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-06-01 15:42:34 +03:00
Jari Kolehmainen
ac32a3686e
Remove Kontena reference from Lens logo (#357)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-05-12 20:36:58 +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
Jari Kolehmainen
5cd00bd77a
Prometheus provider/path related ui fixes (#354)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-05-09 09:04:38 +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
Jari Kolehmainen
8d2e8bbe62
Delay webview create on cluster page (#332)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-05-03 10:29:32 +03:00
Jari Kolehmainen
03aab714d8
Fix no-drag css (#331)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-05-01 10:39:53 +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
105021509c
Cleanup cluster webview loading (#313)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-28 08:26:27 +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
Lauri Nevala
ac552087d5
Do not timeout watch requests (#273)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-04-19 17:48:14 +03:00
Jari Kolehmainen
298636b8f1
Fix default workspace remove (#242)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-13 18:21:25 +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
Miska Kaipiainen
758034f61a
Clean up legacy references to Kontena (#216)
Signed-off-by: Miska Kaipiainen <miska.kaipiainen@gmail.com>
2020-04-11 14:38:53 +03:00
Jari Kolehmainen
806d8c6716
Initial port-forward implementation for services (#231)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-10 11:05:37 +03:00
Jari Kolehmainen
8c348f076e
Fix bundled helm3 binary on windows (#233)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-09 17:58:12 +03:00
Jari Kolehmainen
f23da9ccad
Bundle helm3 binary (#220)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-06 18:18:18 +03:00
Jari Kolehmainen
2593f70184
Always end watch stream if connection to kube-api ends (#217)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-04 18:26:42 +03:00
Lauri Nevala
b95e45b75b
Catch ipc errors on proxy exit (#214)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-04-03 19:50:41 +03:00
Christopher Biggs
70abf73176
SelfSubjectAccessReview use 'pods' resource (#204)
Signed-off-by: Christopher biggs <christopher.l.biggs@gmail.com>
2020-04-03 19:44:50 +03:00
Lauri Nevala
eab8231f92
Send Content-Type header on response for asset request (#190)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-04-01 07:20:40 +03:00
Jari Kolehmainen
5c2e64b487
Add kubectl/helm download mirror select to preferences (#185)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-04-01 07:19:10 +03:00
Lauri Nevala
f432d7e2c0
Unlink binary download on error properly (#162)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2020-03-27 07:40:31 +02:00
Jari Kolehmainen
39fdcdb54a
Don't retry metrics on 404 status code (#152)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-03-24 19:06:56 +02:00
Jari Kolehmainen
1aaa695cfe
Refactor dashboard server logic to electron main (#146)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2020-03-24 07:37:47 +02:00
Krakaw
a35eedd17c Updated manifest metric preview url
Signed-off-by: Krakaw <41575888+Krakaw@users.noreply.github.com>
2020-03-17 14:57:43 +02: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