Sebastian Malton
e10c13cdf4
Switch integration tests to get application menus by IDs ( #3912 )
2021-10-07 15:30:52 -04:00
Juho Heikka and Sebastian Malton
724b9450a6
Change onBeforeRun API ( #3981 )
...
Co-authored-by: Sebastian Malton <sebastian@malton.name >
2021-10-07 12:43:50 -04:00
Sebastian Malton
913244b204
Catch metadata being undefined at KubeObject creation ( #3960 )
2021-10-07 10:09:21 -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
Juho Heikka
8bbaf8c59e
Add terminal copy on select ( #3904 )
2021-09-29 08:55:39 -04:00
Alex Andreev
6b123dc4c0
Redirect from /catalog to last catalog page ( #3807 )
...
* Redirect from /catalog to last catalog page
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up more
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Splitting url params to pass in catalogURL()
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-09-29 09:04:54 +03:00
Jim Ehrismann
8bca8dd7dc
updated expired community slack invite link with permanent one ( #3906 )
...
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2021-09-28 12:50:34 -04:00
Jari Kolehmainen
06854b4cac
Disable log file writing on renderer ( #3874 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-23 12:36:53 +03:00
Jari Kolehmainen
02c90c760d
fix missing query parameter ( #3875 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-23 12:23:00 +03:00
Panu Horsmalahti
429418a1e2
Emit contextMenuOpen for WebLink CatalogEntity ( #3842 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-09-20 10:09:51 -04:00
Lauri Nevala
53ce818589
Revert "Fix check for user exec command ( #3664 )" ( #3827 )
...
This reverts commit 056b818ceb .
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-09-17 11:13:04 +03:00
Sebastian Malton
056b818ceb
Fix check for user exec command ( #3664 )
2021-09-15 13:09:57 -04: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
Panu Horsmalahti
8e9dd50828
Add catalogAddMenu filter to CatalogCategory ( #3722 )
2021-09-13 11:33:11 -04:00
Panu Horsmalahti
936927af98
Add CatalogCategory filter to the extension API ( #3718 )
...
* Add CatalogCategory filter to the extension API.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Fix test.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2021-09-13 15:46:28 +03:00
chh
e2b096fae1
Stop Sentry from capturing console.error and logger.error ( #3785 )
...
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
2021-09-13 10:56:12 +03:00
Jari Kolehmainen
3262b13926
Allow KubeApi connect directly to remote k8s ( #3766 )
...
* allow KubeApi to connect directly to remote k8s
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* backward compat
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* backward compat
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-09-13 10:14:05 +03:00
Lauri Nevala
8651eb9594
Use PATCH verb to scale deployments and statefulsets ( #3744 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2021-09-09 09:31:11 +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
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
366a2f99a1
Make ipc.boradcast not stopping at uncaught exceptions, improve typing, improve error logs ( #3717 )
...
* Improve typing, print better error message instead of stop at throwing at view.getType(); continue to send to subframe even if one throws
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
* Remove console.log
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
* Remove extra line
Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com >
2021-09-02 13:20:18 +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 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
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
Sebastian Malton
7d8a6a3e25
Validate and set defaults for HelmChart creation ( #3492 )
2021-08-18 08:06:57 -04:00
Jari Kolehmainen
016d012439
Fix KubeApi.watch leak on abort ( #3629 )
...
* fix KubeApi.watch leak on abort
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* make linter happy
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-18 11:50:03 +03:00
Sebastian Malton
1833a1c722
Fix StatefulSet.getImages to handle null case ( #3619 )
2021-08-17 13:02:33 -04:00
Sebastian Malton
e979cbf7c7
Add back sentry winston logger transport ( #3602 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-08-12 11:01:39 -04:00
pashevskii and Alex Andreev
e4c393244a
Replace Ace Editor with monaco ( #2949 )
...
Signed-off-by: Pavel Ashevskii <pashevskii@mirantis.com >
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-08-12 13:00:52 +03:00
Jari Kolehmainen
be6df7d25a
Allow to pass KubeObjectStore.api via constructor ( #3596 )
...
* allow to pass KubeObjectStore.api via constructor
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* cleanup
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* remove throw for backward compat reasons
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2021-08-12 11:13:56 +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
Alex Andreev
b7be3ae21a
Sync kubeconfigs from catalog ( #3573 )
...
* Kubeconfig syncs from Catalog
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Allow to select directory to sync
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Convert Preferences to Route-based component
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Jump from notification to Preferences
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Adding navigateWithoutHistoryChange() method
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Cleaning up
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing integration tests (no check for Telemetry tab)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
* Fixing tests harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2021-08-11 13:24:33 +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
2b3351bf9b
Remove circular dependency with isAllowedResource function ( #3545 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-08-04 16:01:47 -04:00
Sebastian Malton
17b14f9871
Make sure that there are only ever 12 slots in a hotbar ( #3379 )
...
* Make sure that there are only ever 12 slots in a hotbar
- Send notification if hotbar is full
- Filter out on every fromStore call
- Switch to broadcast on error
- Fix addToHotbar index check
Signed-off-by: Sebastian Malton <sebastian@malton.name >
* change when to/fromStore are located
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2021-08-04 10:37:08 +03:00
Sebastian Malton
3fe8014f11
Move Hotbar types to seperate file ( #3532 )
2021-08-03 14:38:36 -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
Violetta Shakirova
1b11433bca
Add ability to rename hotbars ( #3469 )
...
Signed-off-by: vshakirova <vshakirova@mirantis.com >
2021-07-27 08:54:41 -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
4fe0a7d73e
Catalog render optimizations ( #3422 )
2021-07-21 08:51:46 -04:00
Sebastian Malton
14b70a6c53
Cleanup <EventEmitter> ( #3338 )
2021-07-20 08:39:44 -04:00
Violetta Shakirova
8683735630
Fix HPA visibility ( #3426 )
...
Signed-off-by: vshakirova <vshakirova@mirantis.com >
2021-07-19 11:38:44 -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
0a8cf96415
Add kube-version and distro on detail panel ( #3335 )
2021-07-14 08:30:57 -04:00
Sebastian Malton
9e363b8d5f
Remove win-ca/pem before publish & catch inject error ( #3362 )
2021-07-13 11:40:52 -04:00
Sebastian Malton
9b2031159d
Ignore extensions' clusters when adding to kubeConfigSync ( #3313 )
2021-07-12 12:05:05 -04:00