Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Malton 994208b25a Fix documentation around components examples (#4375) 2021-11-17 17:06:29 -05:00
Sebastian MaltonandJari Kolehmainen 0f2801552f Fix handling of PTYs when renderer is reloaded (#4346)
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-11-17 13:48:46 -05:00
Sebastian Malton 7ccac061d9 Use actions@stale/v4 instead of actions@stale/4 (#4343)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-17 08:02:06 -05:00
Sebastian Malton 2fc588aed5 Fix dropdowns not being searchable for ClusterRoleBindingDialog and RoleBindingDialog (#4272)
* Fix dropdowns not being searchable for ClusterRoleBindingDialog and RoleBindingDialog

- Added some tests

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

* Fix unit test

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-17 08:01:40 -05:00
Sebastian Malton 159c240a80 Display resource load errors seperately from list of items (#4228) 2021-11-16 12:41:10 -05:00
Sebastian Malton 53dd538350 Fix edit-resource by correctly saving first draft (#4342) 2021-11-15 16:32:46 -05:00
Sebastian Malton e51ff5051f Fix crash when finding CRD's preferred version (#4332) 2021-11-15 11:16:37 -05:00
Sebastian Malton 085d08cefd Use specific version of actions/stale (#4330)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-12 13:44:14 -05:00
Sebastian Malton b550ea9178 Reduce logging on failure to get cluster metrics (#4284) 2021-11-12 08:51:37 -05:00
Sebastian Malton 673f20fb74 Fix CRDs not updating in Sidebar (#4288) 2021-11-12 08:51:14 -05:00
Sebastian Malton 333d77f66a Make Delete/Remove menu item consistent as Delete (#4313) 2021-11-12 08:51:04 -05:00
Sebastian Malton a71a6dcaff Always override PATH when syncing from shell (#4132) 2021-11-12 08:50:57 -05:00
Sebastian Malton 3522485c6f Improve cluster connection visibility (#4266) 2021-11-12 08:49:21 -05:00
Sebastian Malton d060459ccd Close issues with 'needs-information' after 60 days (#4305) 2021-11-10 16:39:57 -05:00
Sebastian Malton de4c7e4cff Fix race condition in refreshViews (#4094) 2021-11-10 12:07:55 -05:00
Sebastian Malton c37a8aee0a Correctly catch and notify user about NodeShell pod failures (#4244)
* Correctly catch and notify user about NodeShell pod failures

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

* Fix error throwing sometimes during Terminal.detach

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-09 22:52:46 -05:00
Sebastian Malton 1ce2e727af Fix crash in IngressDetails (#4267)
* Fix crash in IngressDetails

- Adds check in Ingress.getServiceNamePort() for a
  .spec.defaultBackend.resource instead of .spec.defaultBackend.service

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

* remove undefined

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

* Add comment about RequireExactlyOne

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-09 22:52:36 -05:00
Sebastian Malton 81b972a2d0 Make ws:// authentication more timing safe (#4297) 2021-11-09 14:24:32 -05:00
Sebastian Malton 18d695348b Change base64 functions to be exported not as object children (#4298) 2021-11-09 13:43:45 -05:00
Sebastian Malton e5bf5920fc Keep shell processes alive between network offline periods (#4258) 2021-11-09 12:30:55 -05:00
Sebastian Malton 4b9fdddac4 Specify GiB for lens prometheus metrics instead of GB (#4287) 2021-11-09 09:33:53 -05:00
Sebastian Malton 200061d386 Use .status.phase instead of computing it for Pod.getStatusMessage (#4286) 2021-11-09 09:33:42 -05:00
Sebastian Malton 5eb1b8553d Support window nodes for node-shells (#3624)
* Support window nodes for node-shells

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

* Also check beta.kubernetes/os label

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

* Add comment about linux fallback

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-08 20:11:40 -05:00
Sebastian Malton c09a57370e Block shell websocket connections from non-lens renderers (#4285)
* Block shell websocket connections from non-lens renderers

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

* Add IPC based authentication tokens

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

* Fix race condition on tab start

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-08 19:02:10 -05:00
Sebastian Malton a399b8ee20 Fix crash on HorizontalPodAutoscalers view (#4276) 2021-11-08 10:12:26 -05:00
Sebastian Malton 3666c56319 Display loading spinner while switching between helm charts (#4269) 2021-11-08 10:12:17 -05:00
Sebastian Malton 7e82b7632a Fix not being able to sync kube config files on linux (#4253) 2021-11-04 14:12:49 -04:00
Sebastian Malton 43845ed145 Fix auto update not working for AppImage (#4256) 2021-11-04 12:11:08 -04:00
Sebastian Malton 526b7c46be Fix impl of 'Fix metrics configuration via catalog' (#4255) 2021-11-04 10:55:23 -04:00
Sebastian Malton a93108c103 Fix auto-update on macOS not working (#4248) 2021-11-03 16:29:50 -04:00
Sebastian Malton 28e182a2a3 Properly propagate promises in Kubectl.ensureKubectl to avoid UnhandledPromiseRejections (#4243) 2021-11-03 12:28:12 -04:00
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