Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Malton 79c4132df9 Reduce selection on triple click in Drawers (#4201) 2021-11-03 10:10:07 -04:00
Sebastian Malton df297613ca Fix trying to download kubectl from [object Object] (#4215)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-03 07:44:28 -04:00
Sebastian Malton c6dce043a7 Lint: comma-spacing (error) & comma-dangle (error) (#4200)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-02 17:38:20 -04:00
Sebastian Malton 7ba359be03 Only offer app version downgrade if updateChannel differs from current version (#4212) 2021-11-02 12:07:50 -04:00
Sebastian Malton d8538eaa75 Use user configured kubectl path in node and pod menu items (#3506) 2021-11-02 09:29:45 -04:00
Sebastian Malton 41863e87ce Lint: object-curly-spacing (error) (#4198) 2021-11-01 08:45:45 -04:00
Sebastian Malton 0759b80435 Lint: space-before-function-paren (error) (#4199) 2021-11-01 08:37:49 -04:00
Sebastian Malton e74f17e8ce Lint: no-unused-expressions (error) (#4197) 2021-11-01 08:37:37 -04:00
Sebastian Malton c6dab62e99 Lint: no-template-curly-in-string (error) (#4196) 2021-11-01 08:37:29 -04:00
Sebastian Malton 4d63ef2878 Use spec.serviceName as an externalIP if nothing else (#4188)
* Use spec.serviceName as an externalIP if nothing else

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

* Move using externalName to display logic

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-01 07:23:29 -04:00
Sebastian Malton d6d378bd3f Fix NamespaceSelectFilter (#4187) 2021-10-29 11:39:18 -04:00
Sebastian Malton 82162e5021 Only listen to CMD+f for <SearchInput> on macOS (#4175) 2021-10-29 09:43:20 -04:00
Sebastian Malton 9e2ee00974 Clear up some NamespaceStore.toggleAll and NamespaceStore.hasAllContexts (#4167) 2021-10-29 08:45:02 -04:00
Sebastian Malton 6c599556a2 Fix NamespaceSelectFilter all namespaces button (#3983)
* Fix NamespaceSelectFilter all namespaces button

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

* simplify fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-28 15:55:40 +03:00
Sebastian Malton b32e841bd2 Increase maxBuffer size when getting helm release details (#4164) 2021-10-28 08:33:16 -04:00
Sebastian Malton b4d5e74d16 Update .yarnrc file (#4150) 2021-10-28 08:31:10 -04:00
Sebastian Malton 51c367fae5 Remove unused deps (#4146)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-28 06:36:51 -04:00
Sebastian Malton f297407156 Stop using @electron/remote to obtain app.getPath() (#4078)
* Stop using remote to obtain app.getPath()

- Initialize entire map in bootstrap()

- Updated unit tests

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

* Resolve PR comments

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

* Fix test

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

* Fix build

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

* Ensure that init can only be called once and catch errors

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

* Replace basically all uses of app.getPath() with AppPaths.get()

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

* Fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-27 21:07:41 -04:00
Sebastian Malton 566d2a6797 Upgrade to Electron@v13.6.0 (#4145) 2021-10-26 16:49:25 -04:00
Sebastian Malton 27a0b02ce2 Close windows before trying to update (#4142) 2021-10-26 14:38:08 -04:00
Sebastian Malton 5abc1c618c Add several more util functions and tests (#4106) 2021-10-26 09:36:34 -04:00
Sebastian Malton 983304f824 Copy whole drawer title if no colon exists (#4120) 2021-10-26 09:16:50 -04:00
Sebastian Malton 221ab46540 Handle named ports in probe label renderer (#4118)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-25 10:40:45 -04:00
Sebastian Malton 8fa2adf870 Add double click to reset sidebar width (#4109) 2021-10-22 09:10:21 -04:00
Sebastian Malton cd14097668 Fix errors in HotbarStore migrations (#4105) 2021-10-22 09:03:35 -04:00
Sebastian Malton d5719f29b8 Fix PodDetailsList being empty over 100 pods (#4096) 2021-10-21 09:38:48 -04:00
Sebastian Malton 5bdebfda43 Add better error message if the proxy test fails (#3913)
* Add better error message if the proxy test fails

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

* resolve pr comment

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-20 22:33:28 -04:00
Sebastian Malton f52a2295a2 Fix captitalization in CrdResources component (#4093) 2021-10-20 15:42:44 -04:00
Sebastian Malton e16623c82d Remove unused dep @emeraldpay/hashicon-react (#4091)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-20 11:54:38 -04:00
Sebastian Malton 1f42a5148e Remove api lookup in KubeObjectStore (#4092) 2021-10-20 10:44:13 -04:00
Sebastian Malton 32562b11a4 Remove ClusterStore.removedClusters and correctly delete lens storage file (#4077) 2021-10-20 08:51:26 -04:00
Sebastian Malton b4a4cc6be4 Correctly handle empty string valued secrets in SecretDetails (#4079) 2021-10-20 08:51:03 -04:00
Sebastian Malton 38276bbbff Update helm cache if files have been modified (#3973) 2021-10-20 08:50:52 -04:00
Sebastian Malton 64175b24e0 Sort pod names by convering sub-parts (#3314) 2021-10-19 10:36:49 -04:00
Sebastian Malton cbffb85650 Disable kubectl download mirror options when not available (#3956) 2021-10-19 09:22:06 -04:00
Sebastian Malton 125a073007 Add context menu into sidebar (#4044) 2021-10-19 09:19:25 -04:00
Sebastian Malton e21888c62c Fix iter function return values (#3958) 2021-10-19 09:02:59 -04:00
Sebastian Malton 5998b4ca84 Upgrade js-yaml to 4.X (#3623) 2021-10-18 10:03:10 -04:00
Sebastian Malton f12b0658ba Add URL display to weblink URLs (#4046) 2021-10-18 09:38: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 343569a025 Add static Pod.yaml to templates (#4055) 2021-10-15 12:49:18 -04:00
Sebastian Malton 052d12fc19 Check object instanceof on all detail panels (#4054)
* Check object instanceof on all detail panels

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

* Fix unit tests

- Remove prettier as snapShot testing is too tight of a bound

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-15 12:11:46 -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 d2203b3a30 Fix verify-docs error (#4045) 2021-10-14 15:20:12 -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 53c9d35832 Fix cluster icon click in sidebar redirecting to wrong route (#4037) 2021-10-14 08:50:24 -04:00
Sebastian Malton 75ddf48914 Upgrade typedoc-plugin-markdown to fix verify-docs (#4031) 2021-10-14 08:50:10 -04:00
Sebastian Malton 7e0aeca119 Remove exec.command checking (#3881) 2021-10-14 08:46:23 -04:00
Sebastian Malton 3988229a6c Fix auto-update channel checking and pinning (#4030) 2021-10-13 14:48:47 -04:00
Sebastian Malton e64060cc69 Conditionally render node taints upon value existance (#3989) 2021-10-13 10:34:28 -04:00
Sebastian Malton 9c94c19a4f Add ability to configure lens release channel (#3971) 2021-10-12 08:32:06 -04:00
Sebastian Malton b9cee0cbc7 Fix HelmChartDetails and HelmReleaseDetails Menu (#3986) 2021-10-12 08:30:46 -04:00
Sebastian Malton d979405023 Fix make clean to actually remove *.tgz files (#3997) 2021-10-12 08:30:27 -04:00
Sebastian Malton 5a25c44de6 Catch and display errors for release details (#3905) 2021-10-12 08:28:32 -04:00
Sebastian Malton 329f4706c0 Use the served and storage version of a CRD instead of the first (#3999) 2021-10-12 07:31:11 -04:00
Sebastian Malton 0cd3931d67 Don't run store migrations on renderer (#3968) 2021-10-08 09:15:40 -04:00
Sebastian Malton cdb57f4c97 Remove directly depending on openid-client (#3935) 2021-10-08 09:02:32 -04:00
Sebastian Malton e10c13cdf4 Switch integration tests to get application menus by IDs (#3912) 2021-10-07 15:30:52 -04:00
Sebastian Malton 913244b204 Catch metadata being undefined at KubeObject creation (#3960) 2021-10-07 10:09:21 -04:00
Sebastian Malton 31f84234a0 Fix taints on nodes view (#3957)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-07 10:08:34 -04:00
Sebastian Malton ae96ae7d50 Update extension's package-lock.json files
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-10-06 15:24:17 -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
Sebastian Malton f2c623f89e Specify tableId for DeploymentReplicaSets (#3950) 2021-10-04 14:32:15 -04:00
Sebastian Malton cfd89fa7ba Pin @k8slens/extensions dependencies instead of wildcarding them (#3930) 2021-10-01 15:46:25 -04:00
Sebastian Malton b692bc3603 Make default catalog action to open entity (#3915) 2021-09-30 09:46:33 -04:00
Sebastian Malton 17e97f16c9 Fix title of service account dialog (#3883) 2021-09-23 22:27:03 -04:00
Sebastian Malton 3c77c06519 Add ability to search and activate entities via the command dialog (#3692) 2021-09-23 13:18:31 -04:00
Sebastian Malton 3fc5b83461 Add error message for no contexts in add cluster page (#3868) 2021-09-22 10:25:48 -04:00
Sebastian Malton dfa0a35695 Fix error due to async validators for <Input> (#3823)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-20 09:54:12 -04:00
Sebastian Malton e251194cb5 Fix reference error when opening cluster view (#3824)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-20 13:01:05 +03:00
Sebastian Malton e5c9c9a4b5 Fix test GH action to run on all branches (#3822) 2021-09-16 10:38:31 -04:00
Sebastian Malton 1ebb8eedf7 Upgrade all testing linux CI machines to Ubuntu-20.04 (#3799) 2021-09-16 09:02:43 -04:00
Sebastian Malton be1a2ebe59 Fix shell connection readiness heuristic (#3795) 2021-09-15 17:40:36 -04:00
Sebastian Malton 056b818ceb Fix check for user exec command (#3664) 2021-09-15 13:09:57 -04:00
Sebastian Malton 068c78d48d Draggable region on macOS should be the same as the main header (#3800)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-15 12:28:06 -04:00
Sebastian Malton b43086a386 Don't change permissions when deleting a cluster (#3798)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-09-15 12:27:48 -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
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
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 MaltonandPanu 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 2716a3fded Fix .eslintrc.js (#3648)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-19 14:29:18 -04:00
Sebastian Malton 902224a6dc Always display a Node's taints' values (#3646)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-19 13:40:16 -04:00
Sebastian Malton 7d8a6a3e25 Validate and set defaults for HelmChart creation (#3492) 2021-08-18 08:06:57 -04:00
Sebastian Malton 1833a1c722 Fix StatefulSet.getImages to handle null case (#3619) 2021-08-17 13:02:33 -04:00
Sebastian Malton 8c93c96910 Remove @types/circular-dependency-plugin (#3601)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-17 11:53:48 -04:00
Sebastian Malton f39f0634b1 release v5.2.0-beta.1 (#3610)
* release v5.2.0-beta.1

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

* Fix CI

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-08-16 12:34:19 -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
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 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 b6ba39c438 Remove circular imports around the command pallet (#3544) 2021-08-04 14:22:18 -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 14f8343170 PR authors must label their PRs (#2985) 2021-08-04 12:21:26 +03: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 fb74859f66 Split KubeObject related components into seperate folders (#3533) 2021-08-03 17:39:29 -04:00
Sebastian Malton 3fe8014f11 Move Hotbar types to seperate file (#3532) 2021-08-03 14:38:36 -04:00