Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Malton 85f2ce7504 Reset ClusterStatus state when switching clusters (#5149) 2022-04-01 12:02:04 -04:00
Sebastian Malton 7fffa3643c Bump all @sentry related packages (#5155) 2022-04-01 08:55:34 -04:00
Sebastian Malton 3a26ea7b7f fix license-header workflow (#5158) 2022-03-31 14:20:39 -04:00
Sebastian Malton 086604630a Add links for ingresses (#4630)
* Add links for ingresses

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

* Add back the arrow service

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

* Only display link if host is defined

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

* Resolve PR comments

- Fix crash in IngressDetails

- Make ingress routes scrollable

- Don't display link if the URL contains "*"

- Consolidate rendering of rules to all use the same transform function

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

* Fix http(s) formatting and add some tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-31 07:58:35 -04:00
Sebastian Malton 63fb94589a Fix CatalogEntity.status sorting in Catalog (#5147)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-31 07:58:01 -04:00
Sebastian Malton 69f1ecb0b9 Fix exception in KubeStore.watch event buffer handling (#5120)
* Fix exception in KubeStore.watch event buffer handling

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

* Fix type error

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-30 07:04:59 -04:00
Sebastian Malton 4c92f3f251 Fully support displaying all supported PodVolume types (#4131) 2022-03-28 09:04:15 -04:00
Sebastian Malton 9203367c60 Fix KubeJsonApi.forCluster throwing on renderer (#5034) 2022-03-24 09:28:04 -04:00
Sebastian Malton 4ca66fceee Bump package version to 5.5.0-alpha.0 (#5083)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-24 08:07:21 -04:00
Sebastian Malton b08daa811d Fix all Age, LastSeen, and FirstSeen displays (#4990) 2022-03-17 15:17:03 -04:00
Sebastian Malton 4d1c69094b Fix spacing and layout of registered TopBar items (#4991) 2022-03-15 08:36:14 -04:00
Sebastian Malton 8b6f8e5dc3 Fix HelmChart validator requiring digest field (#4920)
* Fix HelmChart validator requiring digest field

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

* fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-10 07:06:47 -05:00
Sebastian Malton a19f094a0d Consolidate downloading binaries into one script (#4942)
* Consolidate downloading binaries into one script

- Upgrade lens-k8s-proxy to 0.1.5 which allows us to remove the trailing
  slash in KubeAuthProxy

- Consolidate nromalizing arch and os strings

- Remove LensBinary as HelmCli is not just a raw object since it is
  always bundled

- Introduce OnceCell and use it for the binary paths

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

* Fully remove helmCli, move associated variable to vars

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

* Fix helm downloading on windows

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

* Don't download binaries for unsupported windows

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

* Arch specific paths

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

* Fix downloading helm on windows

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

* rename once-cell file to lazy-initialized

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-09 17:51:51 -05:00
Sebastian Malton d72ebac5f3 Bump lens-k8s-proxy to v0.1.5 (#4946)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-03-02 17:21:32 -05:00
Sebastian Malton 1077a949ec Cherry Pick from master to release/v5.4 (#4945) (#4955) 2022-03-02 08:58:52 -05:00
Sebastian Malton 0b32775d40 Enforce some naming conventions (#4813) 2022-03-01 13:06:53 -05:00
Sebastian Malton dc6615f98f Cherry Pick commits from master to release/5.4 (#4943) 2022-03-01 11:11:39 -05:00
Sebastian Malton ff14603be6 Fix formatDuration test to be stable (#4944) 2022-03-01 11:05:32 -05:00
Sebastian Malton 5196ffa55d Fix Editor's Font Family preference not being editable (#4938) 2022-03-01 10:53:44 -05:00
Sebastian Malton f5a7d64551 Reduce cluster logging on quit (#4935) 2022-02-28 08:34:45 -05:00
Sebastian Malton 9c604dcfa1 Fix UnhandledPromiseRejectionWarning in KubeApi.watch (#4919)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-22 13:34:49 -05:00
Sebastian Malton 8088d3b5c2 Remove ExtenedMap, ToggleSet, and observable versions (#3310)
- Switch to helper functions instead. They don't impact the prototype
  tree and it means that we don't need to introduce versions that are
  both observable and "normal"

- Tidy <ItemListLayout> and hiddenTableColumns to not need
  pre-initialization

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-16 18:20:22 -05:00
Sebastian Malton ed91ef2d03 Cleanup HelmRepoManager and <HelmCharts> (#4564) 2022-02-16 14:43:26 -05:00
Sebastian Malton dd819bb534 Refine UserStore from/to usage (#3292) 2022-02-16 14:43:19 -05:00
Sebastian Malton 600bd659f6 Enforce member-delimiter-style using eslint (#4870) 2022-02-16 14:43:03 -05:00
Sebastian Malton 46585ee9d8 Rename KubernetesCluster MenuItem from Delete to Remove (#4854) 2022-02-14 09:24:38 -05:00
Sebastian Malton 81e6dc5d8e Allow better typings for extending type of KubernetesCluster (#4843) 2022-02-10 15:55:03 -05:00
Sebastian MaltonandAlex Andreev 8480b2a1e5 Fix StatusBar extension API (#4838)
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2022-02-10 09:08:59 -05:00
Sebastian Malton 15c867745f Restrict title name to be only string (#4839)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-09 07:41:12 -05:00
Sebastian Malton d4d2da1d28 Fix extension sidebar items sometimes being expandable (#4835)
* Fix extension sidebar items sometimes being expandable

- Change <TabRoutesSidebarItems> to be just a helper function

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

* Actual fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 20:21:54 +02:00
Sebastian Malton f53892cb46 Fix custom-resource navigation (#4831)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 15:43:50 +02:00
Sebastian Malton 0745f9c063 Fix Cluster.refresh sometimes taking upwards of 20s (#4826)
- Only read and parse the proxy config once

- Reuse the AuthorizationV1Api instance for the entire refresh instead
  of recreating it between 32 and 302 times, this should allow for
  reusing sockets

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-08 15:37:46 +02:00
Sebastian Malton 4abe0d6c20 Only group delete visible items (#4798) 2022-02-07 10:40:20 -05:00
Sebastian Malton 06ec1b39a4 Fix not being able to install extensions sometimes (#4794) 2022-02-07 09:07:09 -05:00
Sebastian Malton 0017f515ab Fix 'mkdocs deploy master' workflow (#4810) 2022-02-03 09:56:45 -05:00
Sebastian Malton 2b952e193e Fix electronegativity workflow config (#4809) 2022-02-03 09:36:45 -05:00
76f48df56b Fix rerendering of KubeObject views every 30s (#4801)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2022-02-03 09:11:28 -05:00
Sebastian Malton dd4aa30b8d Update Node.getRoleLabels() to work with kube 1.16's defaults (#4771)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-02-01 07:33:39 -05:00
Sebastian Malton 0b1696fe16 Fix build due to removal of old extended collections (#4779) 2022-01-31 10:46:40 -05:00
0ce4e3d793 Full dependency inversion of <Dock> and all current tab kinds (#4757)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2022-01-31 09:49:36 -05:00
Sebastian Malton 38790eb886 Upgrade to latest for all linting deps (#4755)
* Upgrade to eslint latest

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

* Fix OOM error

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

* resolve PR comments

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-29 07:46:37 -05:00
Sebastian Malton 2ad78c2a86 Fix item menus for several pages (#4770) 2022-01-28 11:08:06 -05:00
Sebastian Malton 8d8491a035 Ensure that CatalogEntity.getName() and CatalogEntity.getId() are always used (#4763) 2022-01-27 14:42:19 -05:00
Sebastian Malton a2b9153e52 Allow users of KubeObjectListLayout to override all props of ItemListLayout (#4752)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-27 07:13:56 -05:00
Sebastian Malton 162741a7cc Fix multi-document support in monaco editor (#4756)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-27 07:13:41 -05:00
Sebastian Malton b3df5b4fc6 Fix pod logs dock tab (#4738)
- Move all dependencies into a transient LogsViewModel

- Remove dependencies on dockStore.selectedTab

- Make all bindings as late as possible, as per mobx rules

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-25 07:04:11 -05:00
Sebastian Malton 53ffc62391 Add extension API for registering custom category views (#4733) 2022-01-21 16:44:57 -05:00
Sebastian Malton 411b9a9a88 Add support for custom columns on catalog categories (#4708) 2022-01-19 10:22:22 -05:00
Sebastian Malton eb93a2eee7 Revert "Add auto-detect support for Victoria Metrics Single" (#4705) 2022-01-17 13:55:30 -05:00
Sebastian Malton 2ee47a442a Reroute to landing page from previously registered extension cluster pages (#4385) 2022-01-12 08:47:42 -05:00
Sebastian Malton 39beca0639 Fix Kubectl.downloadKubectl() (#4674)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-12 07:06:54 -05:00
Sebastian Malton 14b30d84a1 Fix crash for KubeObjectStore.loadAll() (#4675)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-12 07:05:27 -05:00
Sebastian Malton d40071a9d5 Fix CommandOverlay for extension API (#4673) 2022-01-11 11:58:23 -05:00
Sebastian Malton 56c15e6b0f Minor cleanup of Kubectl's downloadKubectl and writeInitScripts (#4556) 2022-01-10 10:48:58 -05:00
Sebastian Malton fa3708c879 Add eslint:recommended lint rule (#4577) 2022-01-07 08:38:21 -05:00
Sebastian Malton 764d7754e5 fix test
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-05 12:22:43 -05:00
Sebastian Malton 3ce9bfe4f9 Move hotbarManagerInjectable to different file
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-05 12:10:21 -05:00
Sebastian Malton f8ae1149fb Make all of Command* injectable, with some others too
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-05 11:48:52 -05:00
Sebastian Malton abe90ad92a Add CRDs to Command Palette and fix bugs
- Deprecate the "scope" on command registrations as it is buggy and
  generally unfixable

- Switch to mounting CommandContainer in each new frame so that there is
  no need to broadcast anything other than opening palette

- Add CRD entries to the command registry within each cluster

- Add navigate to CommandActionContext to simplify handling of root
  frame scoped URLs

- Switch to using DI for some of the deps

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-05 11:48:51 -05:00
Sebastian Malton 4f75acf2b4 Ban circular dependencies (#3547) 2022-01-05 11:35:44 -05:00
Sebastian Malton 6a97a7b35b Fix CRD.getPreferedVersion() to work based on apiVersion (#4553)
* Fix CRD.getPreferedVersion() to work based on apiVersion

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

* Add tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-01-05 07:53:28 -05:00
Sebastian Malton 2a31c5a0d5 Removing JS adding #terminal-init so that unit tests don't have global state (#4627) 2022-01-04 10:20:41 -05:00
Sebastian MaltonandAlex Andreev 8082501bb3 Remove unnecessary CatalogEntityItem (#4582)
* Remove unnecessary CatalogEntityItem

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

* Using simple notation to set search url params

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix styles file name

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-12-24 13:49:34 +03:00
Sebastian Malton f8fa33ec8c Upgrade to latest version of @typescript-eslint/* pkgs (#4576)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-20 07:18:01 +03:00
Sebastian Malton 8f194b87c3 Add getBaseRegistryUrl dep to attemptInstallByInfoInjectable (#4590) 2021-12-17 11:53:00 -05:00
Sebastian Malton 43c16d6203 Fix <Extensions> not building (#4588) 2021-12-17 11:01:34 -05:00
Sebastian Malton e9d99d8485 Replace all uses of promiseExec with promiseExecFile (#4514) 2021-12-17 10:29:09 -05:00
Sebastian Malton 78678bdf2f Add support for customizing the extension install registry URL (#4503) 2021-12-17 10:28:59 -05:00
Sebastian Malton bde0a9ef91 Change isEnabledForCluster to use KubernetesCluster instead of Cluster (#4584) 2021-12-17 08:28:47 -05:00
Sebastian Malton e32c33fc18 Add lint rule
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-15 08:41:28 -05:00
Sebastian Malton f6193718ff Fix crash on NetworkPolicy when matchLabels is missing (#4500) 2021-12-14 14:10:27 -05:00
Sebastian Malton 1e22cffcd8 Fix extension engine range not working for some ^ ranges (#4554) 2021-12-14 11:57:34 -05:00
Sebastian Malton d775d53078 Fix not being able to clear set cluster icon (#4555) 2021-12-14 11:38:31 -05:00
Sebastian Malton a454b29971 Fix crash with InstallChart
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-14 09:15:15 -05:00
Sebastian Malton 56e72b3a74 Fix ERR_UNSAFE_PORT from LensProxy (#4558)
* Fix ERR_UNSAFE_PORT from LensProxy

- Use the current list of ports from chromium as it is much easier to
  just reject using one of those instead of trying to handle the
  ERR_UNSAFE_PORT laod error from a BrowserWindow.on("did-fail-load")

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

* Move all port handling into LensProxy

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

* don't use so many exceptions

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-14 12:38:35 +02:00
Sebastian Malton 1d1a85f9ea Use electron.clipboard for all clipboard uses (#4535) 2021-12-13 10:45:24 -05:00
Sebastian Malton c0e0408c9b Remove all 'NonBreakingSpace' characters from the repo
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-10 13:06:33 -05:00
Sebastian Malton 41e7664fe2 Add some gh and jq help to the release guide (#4549) 2021-12-10 09:07:57 -05:00
Sebastian Malton 181197fad8 Remove unnecesarry TerminalApi.destroy and TerminalApi.reconnect overloads (#4538) 2021-12-10 09:07:18 -05:00
Sebastian Malton 747ef8daee Special case goBack to navigate to catalog if no where to go back to (#4544) 2021-12-10 09:07:07 -05:00
Sebastian Malton 6284bd1eb4 Fix crash in ClusterStatus (#4533) 2021-12-09 16:03:18 -05:00
Sebastian Malton b665a2efe7 Fix freeze after closing terminal on windows (#4536) 2021-12-09 15:52:27 -05:00
Sebastian Malton 541c00cf24 Add tooltip for cluster name in sidebar (#4534) 2021-12-09 08:40:06 -05:00
Sebastian Malton 25f4a1f3ba Upgrade mock-fs to v5 (#4537)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-09 14:35:49 +03:00
Sebastian Malton 304941d397 Fix IngressApi being registered with a wrong new apiBase (#4485) 2021-12-03 15:19:01 -05:00
Sebastian Malton 7dfd4d586c Fix error notifications not being displayed for CreateResource tab (#4502) 2021-12-03 12:49:42 -05:00
Sebastian Malton 1636be71d5 Don't emit build_id metadata on RPM builds (#4464) 2021-12-02 09:37:13 -05:00
Sebastian Malton 4c16b7020d Fix KubeApi.create not populating kind and apiVersion (#4478) 2021-12-01 15:57:08 -05:00
Sebastian Malton 80eeffc229 Log cluster model if adding a cluster fails when syncing from catalog (#4463) 2021-12-01 08:08:48 -05:00
Sebastian Malton 4257fce2f0 Fix NetworkPolicy engresses not having node/pod selectors displayed (#4467) 2021-12-01 08:08:26 -05:00
Sebastian Malton 29220c1c73 Fix getLatestApiPrefixGroup to not fail when options.apiBase is not provided (#4462) 2021-11-30 11:27:20 -05:00
Sebastian Malton 2f14b7a70a Refactor Nodes view metrics renderer (#3990) 2021-11-30 10:30:54 -05:00
Sebastian Malton f0274d08a4 Add Check-For-Updates in menu and some notifications (#4437) 2021-11-30 10:30:42 -05:00
Sebastian MaltonandAlex Andreev 7ce4a87ac8 Add support for resizing Drawers (#4440)
Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-11-30 09:09:19 -05:00
Sebastian Malton df46dd9ef6 Fix not being able to remove role bindings via the UI (#4394) 2021-11-30 09:06:54 -05:00
Sebastian Malton 2ab9aeb83c Correctly handle promises and rejections around cluster connection (#4216) 2021-11-30 09:05:34 -05:00
Sebastian Malton 0286faf387 Fix detail views not watching child components (#4345)
* Fix detail views not watching child components

- Add subscribeStores calls to all relavent details

- Add support for tracking overlapping subscribes as an optimization

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

* Resolve PR comments

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

* Detect the adding of a namespace when selected namespaces change

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

* Update debug log

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-29 17:25:35 -05:00
Sebastian Malton 406f595011 Fix lint (#4438) 2021-11-26 11:25:54 -05:00
Sebastian Malton aab48a784c Cleanup OverviewWorkloadStatus, remove findDOMNode (#4392) 2021-11-26 08:42:17 -05:00
Sebastian Malton 0e7704ea3f Change KubernetesCluster's settings menuItem's icon to a cog (#4425) 2021-11-26 08:41:08 -05:00