Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Malton 8dda513b79 Don't clear searchUrlParam on every change (#3189)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-28 11:41:01 +03:00
Sebastian Malton 4e235a95a1 release v5.0.0-beta.12 (#3188) 2021-06-25 14:32:08 -04:00
Sebastian Malton dbfdd450a8 Track extension provisions and check bundled for routing (#3187)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-25 13:28:07 -04:00
Sebastian Malton 9790b71f8c Update distro label on clusters (#3171)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-25 10:40:26 -04:00
Sebastian Malton fff6d2e5f9 Remove padding for custom icons (#3162)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-25 10:40:02 -04:00
Sebastian Malton 51655884c7 Fix hotbar migration of workspaces (#3178) 2021-06-25 09:55:25 -04:00
Sebastian Malton eba44d76aa Fix integration test not assigning to clusterAdded correctly (#3168) 2021-06-24 09:21:53 -04:00
Sebastian Malton 7058193295 Navigate back to last viewed catalog catagory (#3163)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-23 15:53:22 -04:00
Sebastian Malton e49576ee8c Fix <Icon>'s not using tooltip and fix toolbar not being boolean (#3038)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-23 09:14:59 -04:00
Sebastian Malton 65b9e74d45 Treat bundled extensions as enabled in protocol router (#3148)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-22 09:59:53 -04:00
Sebastian Malton 6b464a873b Mark typed-emitter as a dependency for @k8slens/extensions (#3138)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-21 14:14:48 -04:00
Sebastian Malton 132015e900 Publish new npm package (#3137)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-21 12:33:38 -04:00
Sebastian Malton 20d6e50cb7 Always open main window if lens:// are routed (#3130) 2021-06-21 09:27:11 -04:00
Sebastian Malton 4cd25caca8 Switch sync buttons on windows (#3110)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-21 08:37:05 -04:00
Sebastian Malton 723ba1df37 Set grouping on local settings (#3109)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-21 11:01:48 +03:00
Sebastian Malton adf1251bbd Fix dependabot.yml reviewers
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 15:12:12 -04:00
Sebastian Malton e30381f1ee Fix dependabot.yml
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 15:10:45 -04:00
Sebastian Malton fd474fcfa3 Depedabot config should be in .github/ (#3113)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 15:08:46 -04:00
Sebastian Malton 9b04e611a4 Transition workspaces to hotbars (#3079) 2021-06-18 12:05:44 -04:00
Sebastian Malton 4ff5a722a7 lens:// routing shouldn't ignore intree extensions (#3091)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 10:19:13 -04:00
Sebastian Malton 8a0cb2602b ClusterStore.storedKubeConfigFolder should be usabled everywhere (#3105)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 08:44:40 -04:00
Sebastian Malton 7f51e3addd Make CatalogEntity labels clickable (#3075)
- Transition workspace's to be labels

- Fix migrations to support multiple migrations for the same version

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-18 08:44:28 -04:00
Sebastian Malton eb45f45a7a Add context menu entry for deleting local clusters (#2923) 2021-06-17 12:19:22 -04:00
Sebastian Malton 7988f068cb release v5.0.0-beta.9 (#3063)
* Revert displayName being first key

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

* release v5.0.0-beta.9

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-17 13:25:24 +03:00
Sebastian Malton c3c944cd30 Send LensMainExtension.nagivate calls to renderer before navigating (#3082)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-17 12:59:27 +03:00
Sebastian Malton 5f6abe3496 Update extensions/**/package-lock.json to v0.0.1 (#3076)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-16 14:21:23 -04:00
Sebastian Malton 247b00a5a3 Fix height resizing of VirtualList (#3072) 2021-06-16 09:05:24 -04:00
Sebastian Malton 42bb2a620a Fix extensions not having the same version as Lens (#3027)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-15 14:14:03 -04:00
Sebastian Malton 62bc806105 Don't try watching again if credentials have failed (#3039)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-14 09:39:06 -04:00
Sebastian Malton fa5a54f271 Adding tracking of mainWindow's visibility to ProtocolRouter, open main view on valid lens:// (#3026) 2021-06-14 08:55:45 -04:00
Sebastian Malton 5bd1d079de Add checks to block edits to key fields (#2426)
- Referece kubetcl:pkg/cmd/util/editor/editoptions.go:649

- disallow editing status field

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-14 08:49:55 -04:00
Sebastian Malton 6f6ad9cc12 Only run make build on azure (#3041)
* Only run 'make build' on azure

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

* fix spelling

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-14 07:37:54 +03:00
Sebastian Malton 84cad4b155 Allow installing extensions by dist-tag (#3040)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-11 15:06:56 -04:00
Sebastian Malton e26694d4b6 release v5.0.0-beta.8 (#3036)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-11 11:38:40 -04:00
Sebastian Malton 9593cc1323 Add manual restart required to update notification (#3009)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-11 12:28:06 +03:00
Sebastian Malton c9aec32a4a Fix dependabot config (#3022)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-10 14:45:21 -04:00
Sebastian Malton 264f2df7f4 Fix buildNumber to be consistent for all package.json's (#3016) 2021-06-10 12:17:12 -04:00
Sebastian Malton 280af6391e Switch to more specific IPC helpers (#2821) 2021-06-10 10:34:22 -04:00
Sebastian Malton 6d10f011e5 Explicitly initialize registries
- Helps moves towards turning on banning CyclicImports

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-10 09:34:13 -04:00
Sebastian Malton c18df6bcae Minor cleanup of ExtensionDiscovery (#2887) 2021-06-10 09:21:04 -04:00
Sebastian Malton 5ee2ab5b4a Move all RouteParam's and URL builders to src/common (#2778)
- Prevents some circular dependencies

- Allowed main to use them as needed

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-10 08:52:09 -04:00
Sebastian Malton 8e244db1a3 Set build version before building extensions (#3001) 2021-06-09 19:57:04 -04:00
Sebastian Malton 4a4f5e6d26 CatalogEnitityDrawerMenu should have actions running left to right (#3015)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-09 15:35:46 -04:00
Sebastian Malton a1a1c240e9 Split UserManagement into seperate Cluster and Namespace Roles and RoleBindings (#2755) 2021-06-09 13:40:55 -04:00
Sebastian Malton 839fe0ac18 Fix tag-release script (#2983)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-09 07:01:53 +03:00
Sebastian Malton 6677e22371 Remove unnecessary 'onlyVisibleForSource' (#2982)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-09 07:01:26 +03:00
Sebastian Malton 434e5ff635 Turn off --strict in verify-docs (#2998)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-08 11:23:11 -04:00
Sebastian Malton ae2fa15b20 Make customizing ItemListLayout header explicitly reducable (#2956)
- Add search placeholder text for helm releases

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-08 07:41:36 -04:00
Sebastian Malton 60a19143b4 Revert 2844 (#2980)
* Revert "review comments"

This reverts commit 97f2ecd88d.

* Revert "Switch to I, remove type parameter default"

This reverts commit a3073cc99b.

* Revert "Improve Table typing and remove annotations on callbacks"

This reverts commit defb0ea0dd.
2021-06-07 12:02:15 -04:00
Sebastian Malton 97f2ecd88d review comments
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 11:30:29 -04:00
Sebastian Malton a3073cc99b Switch to I, remove type parameter default
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 11:30:29 -04:00
Sebastian Malton defb0ea0dd Improve Table typing and remove annotations on callbacks
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 11:30:28 -04:00
Sebastian Malton ba1e5973be Upgrade typedoc (#2940) 2021-06-07 09:51:43 -04:00
Sebastian Malton f3b38d36c6 Wait for LensApp to report that the view has loaded before showing main window (#2597)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 08:39:38 -04:00
Sebastian Malton 88de530913 Cherry pick commits from 4.2 (#2953) 2021-06-07 08:39:16 -04:00
Sebastian Malton 817c8e00db Simplify add cluster view (#2716)
- Only shows editor, and will save all text to file

- Reports some validation errors, but doesn't block the add cluster
  button

- Cleanup kube helpers to facilitate clearer FS interactions

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 08:14:43 -04:00
Sebastian Malton 07c7653a70 Remove old extensions on build (#2893) 2021-06-07 08:14:27 -04:00
Sebastian Malton 27ec650e0a Remove try/catch around lens:// route, as that happens in route() (#2935)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 08:13:48 -04:00
Sebastian Malton cb4a7497dd Remove Namespace filter from ItemListLayout (#2952) 2021-06-07 08:13:26 -04:00
Sebastian Malton d21f99e609 Await onActivate/onDeactive of extensions (#2963)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 08:08:39 -04:00
Sebastian Malton 278510a90a Make a master tag of the extensions API (#2888)
* Make a master tag of the extensions API

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

* use the gitref as a prerelease header

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

* Reduce the number of releases

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

* Fix if

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 10:40:39 +03:00
Sebastian Malton 031c57962b Readd NamespaceSelectFilter to releases.tsx (#2962)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 10:06:52 +03:00
Sebastian Malton 683a520186 Fix drawer closing on updating kube objects (#2964)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-07 08:23:09 +03:00
Sebastian Malton deaf67b30b Remove isClusterScoped from ItemListLayout (#2743)
* remove isClusterScoped from ItemListLayout

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

* Move <NamespaceSelectFilter> to KubeObjectListLayout

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

* revert to simpler NamespaceSelectFilter fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-04 12:58:12 +03:00
Sebastian Malton 0d0c67f13f Update docs to be correct with the new api changes (#2916)
* Update docs to be correct with the new api changes

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

* Fix renderer-extension.md

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-04 12:44:25 +03:00
Sebastian Malton 043f411ad1 Fix getReleases returning inconsistent data types (#2924) 2021-06-01 11:53:24 -04:00
Sebastian Malton 5fd2d5501c Add notification in renderer if lens protocol handler fails to find any routes (#2787)
- Add notifications on missing lens:// handlers, and invalid URIs

- add notifications on unknown entity IDs

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-06-01 08:28:38 -04:00
Sebastian Malton 36e8888ecb Improve loading animation when switching release details (#2367)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-31 16:43:08 -04:00
Sebastian Malton 2e0ff6c928 Extension Api docs should point to generated index files (#2898)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-28 10:22:38 -04:00
Sebastian Malton 972d2f9a01 Use type-fest's TypedArray for ReadableWebToNodeStream (#2899)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-28 09:38:59 -04:00
Sebastian Malton 847ba3f8eb Fix: don't remove clear all of groupKinds when running disposer (#2835) 2021-05-28 09:10:01 -04:00
Sebastian Malton 9f1e262310 Upgrade to typescript 4.3 (#2894) 2021-05-28 08:41:27 -04:00
Sebastian Malton df1f6e128e Rework extension API into parts (#2879)
* `Main`, `Common`, and `Renderer`
* move registry types to Common.Types

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-27 14:56:33 -04:00
Sebastian Malton 8b352f6c6b fix regression from #2260 (#2891)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-27 10:46:15 -04:00
Sebastian Malton 6104572fea Cleanup pod log store (#2260)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-27 10:13:24 -04:00
Sebastian Malton 652319ac89 Refactor PrometheusProviders (#2707) 2021-05-27 09:50:18 -04:00
Sebastian Malton 81a35737fd Fix spelling and grammar in Ipc docs (#2880)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-27 08:12:53 -04:00
Sebastian Malton 57c87a2e71 Change where extension IPC is exported (#2845)
- Fix documentation and guide
2021-05-26 17:10:39 -04:00
Sebastian Malton f3b3d15e50 Remove unused Prettier package (#2868)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-25 14:14:51 -04:00
Sebastian Malton ac95c1e862 prevent dependabot from introducing bump PRs for major versions (#2869)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-25 20:13:48 +03:00
Sebastian Malton 73b5d30692 Show event last-seen column in addition to age (#2820) 2021-05-25 10:34:28 -04:00
Sebastian Malton 45d74b8c3a Remove getOrDefault from ExtendedObservableMap (#2836)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-25 09:20:26 -04:00
Sebastian Malton d184fccfe2 release v5.0.0-beta.6 (#2834)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-21 12:24:42 -04:00
Sebastian Malton dd81fb6a0f release v5.0.0-beta.5 (#2801) 2021-05-20 09:45:56 -04:00
Sebastian MaltonandJari Kolehmainen 1c422f6ed2 Fix kube sync items not visible on reopening (#2815)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-20 16:40:47 +03:00
Sebastian Malton b61ba7ef71 Filter out unknown catalog entities (#2816)
* Filter out unknown catelog entities

- Keep raw data

- But filter unknown types until a category is registered

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

* fix unit tests

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

* simplify tests

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

* Remove getOrDefault, consolodate ExtendedMap

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-20 08:50:51 +03:00
Sebastian Malton 5ed4537979 Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777) 2021-05-19 12:11:54 -04:00
Sebastian Malton 6be465858b Add IPC capabilities for Extensions (#2775)
* Add IPC capabilities for Extensions

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

* revert onA|D change:

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

* Switch to pushing the disposer in the methods

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

* improve documentation, switch to a singleton instead of extension methods

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

* fix build

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

* make exported class abstract, improve guide

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

* fix docs

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

* fix lint

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

* Change guide demo to initialization in constructor

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-18 12:24:43 +03:00
Sebastian Malton 623973add0 Add license header to more files (#2776)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-17 07:19:45 +03:00
Sebastian Malton f4ff28e51c Switch main's route handlers to be static functions (#2712) 2021-05-12 08:08:42 -04:00
Sebastian MaltonandJim Ehrismann 0771fd5be5 Cherry-Pick from v4.2.4 (#2701)
Co-authored-by: Jim Ehrismann <40840436+jim-docker@users.noreply.github.com>
2021-05-12 08:04:01 -04:00
Sebastian Malton 3a3edeea08 Add tag command, update guide, add PR templates (#2679) 2021-05-12 08:03:45 -04:00
Sebastian Malton 47e5cb1732 Only show the UserManagement tab in the sidebar if the sub menus are allowed for that cluster (#2258)
- Optimize Cluster.isAllowedResource

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-12 08:03:23 -04:00
Sebastian Malton a23f3e038c release v5.0.0-beta.3 (#2711)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-06 10:26:48 -04:00
Sebastian Malton 7b1b8e6321 Fix ClusterScoped kube APIs not subscribing (#2706)
* Fix ClusterScoped kube APIs not subscribing

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

* remove debug

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-06 09:10:52 +03:00
Sebastian Malton d1272515b8 Add browse all tab to catalog page (#2629) 2021-05-03 08:39:04 -04:00
Sebastian Malton 998f7aa934 Add the ability to sync kube config files (#2567)
* Add the ability to sync kube config files

- Will update when the files changes

- add KUBECONFIG_SYNC label

- fix rebase and change to addObservableSource

- move UI to user settings

- support shallow folder watching

- add some unit tests for the diff-er

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

* responding to review comments

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

* fix tests and add try/catch

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

* always sync c&p folder, remove bad rebase

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

* fix preferences

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

* Fix settings saving and catalog view

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

* fix unit tests

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

* fix synced clusters not connectable

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

* change to non-complete shallow watching

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

* fix sizing

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

* Catch readStream errors

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

* don't clear UserStore on non-existant preference field, fix unlinking not removing items from source

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

* change label to file

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-30 16:48:20 +03:00
Sebastian Malton f06d330835 release v5.0.0-beta.2 (#2675)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-29 11:05:13 -04:00
Sebastian Malton 082885cabf Fix KubeObjectStore not correctly tracking loading of namespaces (#2266) 2021-04-29 08:32:29 -04:00
Sebastian Malton 2c3750c240 Fix display name on accessible namespaces notification (#2657)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-29 08:29:32 -04:00