Sebastian Malton
32562b11a4
Remove ClusterStore.removedClusters and correctly delete lens storage file ( #4077 )
2021-10-20 08:51:26 -04:00
Sebastian Malton
38276bbbff
Update helm cache if files have been modified ( #3973 )
2021-10-20 08:50:52 -04:00
Sebastian Malton
cbffb85650
Disable kubectl download mirror options when not available ( #3956 )
2021-10-19 09:22:06 -04:00
Sebastian Malton
5998b4ca84
Upgrade js-yaml to 4.X ( #3623 )
2021-10-18 10:03:10 -04:00
Sebastian Malton
86da6260b6
Don't attempt to sync files larger than 2MiB or non UTF-8 files ( #3985 )
...
* Don't attempt to sync files larger than 16MiB
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Add handling for invalid utf-8
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* Increase max size limit for single file syncs
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-10-15 23:27:34 -04:00
Sebastian Malton
246305cd63
Fix accessible namespaces notification not navigating to correct settings ( #4048 )
2021-10-15 09:06:24 -04:00
Sebastian Malton
9d5689ce69
Only allow extensions to use non-lens specific cluster phases ( #4036 )
2021-10-14 10:25:48 -04:00
Sebastian Malton
3988229a6c
Fix auto-update channel checking and pinning ( #4030 )
2021-10-13 14:48:47 -04:00
Sebastian Malton
9c94c19a4f
Add ability to configure lens release channel ( #3971 )
2021-10-12 08:32:06 -04:00
Sebastian Malton
5a25c44de6
Catch and display errors for release details ( #3905 )
2021-10-12 08:28:32 -04:00
chh
58ac856c89
Use entity.status.phase when updating cluster state ( #4009 )
...
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
2021-10-12 08:07:39 +03:00
Alex Andreev
b2b3c44695
Closing dock tabs with cmd+w on mac ( #3849 )
...
* Change Close menu item accelerator
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Listening global keydown event in <Dock/>
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Prevent terminal to fire custom event
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Refresh tooltip hint
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Make Tab line gray if Dock isn't focused
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-10-11 10:06:43 +03:00
07c8177a97
Feature/port forward dashboard ( #3922 )
...
* Added ability to add custom port on pod and service port forwarding (#3295 )
* Added ability to add custom port on pod and service port forwarding
Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com >
* Added ability to add custom port on pod and service port forwarding
- pod-container-port fixed init async and active port checking
- service-port-component fixed init async and active port checking
- port-forward-route promise and response fix
Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com >
* Added ability to add custom port on pod and service port forwarding
Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com >
* - Added Custom Port Selection for port forwarding
- Implemented Random Port if custom port is not provided
Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com >
Co-authored-by: Saumya Shovan Roy <saumyashovanroy@gmail.com >
* cherry-pick of hackweek work plus merge conflicts/build errors
added a route to get all port forwards
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
Added Forwarded Ports to cluster dashboard
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
working port-forward page (open, edit, remove)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
added local storage to the port-forward store
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
automatically restore port-forward after pod is restarted
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
start port-forwards using random local port by default, rearranged pod and service port-forward UI
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* refactor
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* more refactoring, don't always open port-forwards in browser, refined reused port-forward dialog
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* removed unimplemented forwarded port details page,modified logging
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* addressed some review comments
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* made port and forwardPort query params and cleaned up port-forward routing paths
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* address more review comments and change dashboard tab name to 'Port Forwarding'
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* changed port and forwardPort fields to be Numbers
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* removed extraneous reset() call, reorder field declarations
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* port-forward now gets the bundled kubectl path without going through the 'ensureKubectl' hoops
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* more cleanup/tweaking
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* fix bug where port-forward info did not update on pod details page when different pod (in same deployment?) is clicked
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
Co-authored-by: Saumya Shovan Roy (Deep) <12953177+rdeepc@users.noreply.github.com >
Co-authored-by: Saumya Shovan Roy <saumyashovanroy@gmail.com >
2021-10-07 15:51:26 -04:00
Sebastian Malton
e10c13cdf4
Switch integration tests to get application menus by IDs ( #3912 )
2021-10-07 15:30:52 -04:00
Marc Bachmann
851274d314
Fix prometheus operator support ( #3653 )
2021-10-05 12:35:57 -04:00
Sebastian Malton
4705a66632
Use JSON patch for editing components ( #3674 )
2021-10-04 16:28:19 -04:00
Sebastian Malton
8b1de233f2
Don't override entity source on cluster icons ( #3928 )
2021-10-04 14:38:14 -04:00
dependabot[bot]
548a517e64
Bump url-parse from 1.5.1 to 1.5.3 ( #3813 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-01 17:07:55 -04:00
Jari Kolehmainen
642c6f0d72
Detect log follow requests ( #3890 )
...
* detect log follow requests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* fix
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor to use getBoolean
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor to use getBoolean
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* refactor to use getBoolean
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-27 19:45:37 +03:00
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