Commit Graph
100 Commits
Author SHA1 Message Date
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
Sebastian Malton 44f1f38a75 Fix: display of entity name while connecting (#4415) 2021-11-25 10:00:25 -05:00
Sebastian Malton 5d172b89db Cleanup Prometheus detection (#4316) 2021-11-23 14:34:45 -05:00
Sebastian Malton 8081d35f9c Broadcast cluster's disconnected state before stopping KubeAuthProxy (#4273) 2021-11-23 14:34:37 -05:00
Sebastian Malton 8c9e3b2fdc Fix cwd not being respected for local shells on windows (#4395) 2021-11-23 14:34:18 -05:00
Sebastian Malton 7c5a0a9a6d Improve local shell CWD setting (#4396) 2021-11-23 08:35:16 -05:00
Sebastian Malton 8f84f394fe Fix all-or-nothing when initially loading extensions (#4384)
* Fix all-or-nothing when initially loading extensions

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

* Log error instead of displaying error box

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-11-22 20:30:47 -05:00
Sebastian Malton 78a4e2a126 Catch and display load errors for WorkloadsOverview (#4393) 2021-11-22 12:27:54 -05:00
Sebastian Malton 0e5fc65806 Fix race condition in LensViews.handleVisibleClusterChange (#4387) 2021-11-22 09:43:26 -05:00
Sebastian Malton 8a1faa3eb8 Fix windows AllUsers installs not updating correctly (#4390) 2021-11-19 14:35:55 -05:00
Sebastian Malton 885af07d0b Improve bootstrap logging for help with iframe debugging (#4020) 2021-11-18 16:54:43 -05:00
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