Jari Kolehmainen
ab5eb356c4
Electron 13.4.0 ( #3820 )
...
* electron 13.4.0
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* electron 13.4.0
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor deprecated window event handler
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-27 11:32:37 +03:00
Jari Kolehmainen
d448017f33
Fix node-fetch load on renderer ( #3836 )
...
* fix node-fetch load on renderer
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-20 15:15:26 +03:00
Sebastian Malton
f68cbabbc9
Fix cluster's accessibleNamespaces being reset on restarting Lens ( #3817 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-09-15 12:19:15 -04:00
Lauri Nevala
07d8d567de
Fix fallback to bundled kubectl ( #3812 )
2021-09-15 09:36:19 -04:00
Alex Andreev
4fa0b8e329
Sidebar cluster avatar ( #3765 )
2021-09-13 11:33:30 -04:00
Jari Kolehmainen
d6b2b0352c
Automatically check next pre-release channel ( #3737 )
...
* automatically check next pre-release channel
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* automatically check next pre-release channel
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-09 09:30:41 +03:00
d72158cc63
Fix local cluster delete flow ( #3473 )
...
* Fix local cluster delete flow
- Now checks for the cluster being the current cluster and confirms the
action
- <ConfirmDialog> is fixed to work with several confirmations happinging
at once
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Custom delete cluster dialog
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Saving kubeconfig file refactoring
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Switching current-context from dialog
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up css styles
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Show Delete menu item only for local cluster
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Make all dialogs rounded
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Releasing kubeconfig file after lock
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding delete cluster dialog tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Delete cluster dialog refactoring
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing typo
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing temp file on error
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Updating tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Do not switch context if select is hidden
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing spread symbols
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Moving cluster delete event from catalog initializer to ipc
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Refactor warning messages
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Getting spread (...) back to fix Select render
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Using async form without promises
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Do not show context switcher if no contexts left
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Updating the tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* don't allow delete of the active cluster before setting to new active cluster (#3749 )
* don't allow user to delete the active cluster before setting to new active cluster
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* fix lint issues
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* Show delete button if no more contexts available
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com >
2021-09-08 15:06:14 +03:00
Alex Andreev and Jari Kolehmainen
ffdf4a03cd
Use entity name as cluster name in sidebar ( #3751 )
...
* Using entity name as cluster name in sidebar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Use entity name if preferences name is empty
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* simplify
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-08 12:44:23 +03:00
Alex Andreev
16c4656a7d
TopBar home icon ( #3740 )
...
* Adding home button
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Highlight catalog entity on route match
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Wait for general entites to load
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding WelcomePage catalog entity
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Highlight general entities in hotbar if their route matches
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Moving active entities sync to helper function
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix welcome page test
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-09-07 15:18:46 +03:00
chh
d6d66682f6
Make back/forward/refresh work the same as the arrow button in topbar ( #3720 )
...
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
2021-09-02 14:21:36 +03:00
Lauri Nevala
f58898467d
Use correct working directory (OpenLensDev) on dev mode ( #3709 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-09-01 16:32:33 +03:00
Lauri Nevala
c0398effc5
Detect rancher desktop ( #3711 )
2021-09-01 16:32:10 +03:00
Lauri Nevala
584d45c5e0
Allow to configure default namespace used in terminal ( #3706 )
...
* Allow to configure default namespace used in terminal
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Fix lint issues
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-09-01 12:50:11 +03:00
Sebastian Malton
d132a4c7e7
Fix node shell secret pulling ( #3668 )
...
- On some KE errors are thrown if trying to get a secret with an empty
name, instead of just ignoring the entry
- Clean up the node shell settings
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-09-01 12:49:00 +03:00
Sebastian Malton and Panu Horsmalahti
6fdb2f0b58
Support filtering catalog entities ( #3647 )
...
* Support filtering catalog entities
- This allows extensions and OpenLens to restrict which of the entities
the sources have provied are "visible" to the rest of Lens
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix lint
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* switch to filtering only for catalog view
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix test
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Add test to iter reduce
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
Co-authored-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-08-31 16:00:56 +03:00
Alex Andreev
7981e79cbd
Topbar history buttons ( #3696 )
...
* HistoryStore initial draft
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding history icons
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Jump history using electron methods
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Using 1 topbar component for all views
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Add Catalog title to sidebar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Show cluster name in sidebar
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Updating topbar tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing Welcome tests
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Removing padding for external topbar items
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fix cluster name prop
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Using material icons for history buttons
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-08-31 14:44:47 +03:00
Jari Kolehmainen
9d6bed8786
Build and release amd64 & arm64 together (macOS) ( #3700 )
...
* build and release amd64 & arm64 together
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-31 11:00:27 +03:00
Jari Kolehmainen and Sebastian Malton
56bd8cd0b1
Support MacOS arm64 build ( #3682 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-08-26 14:46:46 -04:00
59933507e4
Upgrade to electron 12 and Node 14 ( #3572 )
...
Upgrade to electron 12 and Node 14
- Compute cluster ID for tests
- Switch to temporary appData path while testing
Signed-off-by: Sebastian Malton <sebastian@malton.name >
Co-authored-by: Sebastian Malton <smalton@mirantis.com >
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-26 12:13:31 -04:00
Sebastian Malton
5f89b3e31f
Fix filtering deprecated charts ( #3635 )
2021-08-24 08:29:36 -04:00
chh
d3ce43e73d
Add 'welcome banner' extension API ( #3656 )
...
* Add react-material-ui-carousel
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
* Add welcomeBanners extension api
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
2021-08-23 14:31:24 +03:00
Jari Kolehmainen
443186d4f5
fix apiBase initialization on main ( #3595 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-12 10:34:45 +03:00
Jari Kolehmainen
2760178196
fix k0s distribution detector ( #3589 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-11 09:16:41 +03:00
Jari Kolehmainen
58a446bd45
Refactor k8s api to common ( #3553 )
...
* refactor kube api to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor more utils to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor more utils to common
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* switch to use node-fetch on both sides
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* improve logger
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix lint errors
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix/improve tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix node-fetch require error on prod build
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* preload fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fixes
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* read serverAddress from apiBase
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-10 13:26:14 +03:00
Sebastian Malton
476aa74101
Inject handlers into LensProxy to remove circular-deps ( #3546 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-08-04 19:18:01 -04:00
Sebastian Malton
ee158e33df
Move lookupApi into apiManager ( #3540 )
2021-08-04 11:36:13 -04:00
Sebastian Malton
574aea40b4
Make DetectoryRegistry a Singleton and initialize in a function ( #3538 )
2021-08-04 08:48:33 -04:00
Sebastian Malton
9a8616f05e
Create c&p folder before starting kube sync ( #3428 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-08-04 08:02:21 -04:00
Sebastian Malton
a6e91fc34a
Move cluster related types and function into seperate files ( #3530 )
2021-08-03 10:36:14 -04:00
Sebastian Malton
b9bb990690
Add new SentryTransport to winston ( #3432 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-08-03 08:38:23 -04:00
Jari Kolehmainen
dc5a885855
bundle kubectl 1.21.2 ( #3267 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-02 19:11:17 +03:00
Sebastian Malton
f35178175b
Ignore certain file globs when under dir kube sync ( #3452 )
...
- .DS_Store
- *.lock
- *.swp
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-08-02 15:02:55 +03:00
Sebastian Malton
ad86502368
Fix KubernetesClusters overriding entity names too often ( #3524 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-29 12:11:45 +03:00
Jim Ehrismann
fd5881fe33
increase timeout for getPortFrom() ( #3511 )
...
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2021-07-23 17:16:09 -04:00
Sebastian Malton
b71e71cdfc
Fix entity accessibleNamespaces ( #3507 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-23 12:48:49 -04:00
Jan Jansen
c8f27e537b
Add accessibleNamespaces to KubernetesClusterModel ( #3487 )
...
Fixes #3485
Signed-off-by: Jan Jansen <jan.jansen@gdata.de >
2021-07-23 11:40:13 -04:00
Sebastian Malton
da53aa0d79
Treat default weblinks same as any other weblinks ( #3385 )
...
- Use seenWeblink and check for non-arrays
- Spread out link validation
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-22 20:28:01 -04:00
Alex Andreev
c6a4d55d86
Improving metric queries ( #3424 )
2021-07-22 09:57:14 -04:00
Jim Ehrismann
b5e6bc36fe
Fix kube auth proxy race condition ( #3458 )
...
* fix race condition by relying on mobx when() to indicate when the kube auth proxy is ready
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* tweak KubeAuthProxy.run() return behaviour
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2021-07-21 11:50:43 -04:00
Sebastian Malton
f03cc59688
Wait for a file to be stable before computing diff ( #3427 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-20 09:32:37 -04:00
Sebastian Malton
600d2c8607
Log as errors the places where getPortFrom can fail ( #3425 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-19 13:40:47 -04:00
Sebastian Malton
c1554d90f2
Catch Cluster create error in cluster-manager ( #3401 )
...
* Catch Cluster create error in cluster-manager
- Only warn if the file is missing. The file must have disapeared
betweeen kubeconfig-sync detecting it and cluster-manager performing
the addCluster call
- For all other errors log an error
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Fix spelling
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Use logger
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-19 07:34:18 +03:00
Alexandre Barone
8c5457cf89
Fix broken shell when workdir not exists ( #3349 )
...
Signed-off-by: devodev <abalexandrebarone@gmail.com >
2021-07-16 14:07:06 -04:00
Josh Soref and Josh Soref
e87b4836be
Fix spelling ( #3181 )
...
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >
2021-07-16 08:53:01 -04:00
Sebastian Malton
ea4a5a4c57
getPortFrom should log the lines it retrived if it fails to get a port ( #3395 )
2021-07-15 14:19:33 -04:00
Sebastian Malton
0a8cf96415
Add kube-version and distro on detail panel ( #3335 )
2021-07-14 08:30:57 -04:00
Sebastian Malton
c335b0f054
Only create TerminalStore after ThemeStore ( #3359 )
...
- Use Proxy for backwards compatability
- Fix a bunch of unit tests that needed all the Singleton's created
- Add comments on the order required for the store migrations
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-13 12:36:46 -04:00
Violetta Shakirova
621f5ba0b3
Make node shell image configurable ( #3249 )
...
Signed-off-by: vshakirova <vshakirova@mirantis.com >
2021-07-12 11:21:46 -04:00
Sebastian Malton
26fb2e796e
Fix not being able to configure non-Lens prometheus settings ( #3355 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-07-12 10:13:11 -04:00
Jari Kolehmainen
50ec37f158
Set res.statusCode before flushing headers ( #3353 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-07-12 10:07:54 -04:00