1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

797 Commits

Author SHA1 Message Date
Sebastian Malton
4ad4e47006 Merge branch 'master' of github.com:lensapp/lens into feature/protocol-handler
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 08:29:24 -05:00
Sebastian Malton
76a8a47a4c improve docs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-04 08:27:57 -05:00
Roman
5287e7e528
KubeObjectStore & KubeWatchApi fixes and optimizations (#2063)
* Detach NamespaceStore from KubeWatchApi, proper KubeObjectStore.loadAll (rebase of #2033)

Signed-off-by: Roman <ixrock@gmail.com>

* Watch-api requests optimization (#2066)

* subscribe for watching resources in single request when has admin-like access rights

Signed-off-by: Roman <ixrock@gmail.com>

* responding to comments

Signed-off-by: Roman <ixrock@gmail.com>

* fix unit-tests

Signed-off-by: Roman <ixrock@gmail.com>

* fix: reloading stores when preloading enabled and waitUntilLoaded=false

Signed-off-by: Roman <ixrock@gmail.com>

* mark Cluster.canUseWatchApi() and Cluster.refreshAccessibility() as private

Signed-off-by: Roman <ixrock@gmail.com>

* fix unit test: make public Cluster.canUseWatchApi()

Signed-off-by: Roman <ixrock@gmail.com>

* responding to comments in #2066

Signed-off-by: Roman <ixrock@gmail.com>
2021-02-04 11:51:35 +02:00
Jari Kolehmainen
f56969a64b
Fix snap packaging (#2081)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-04 10:29:35 +02:00
Sebastian Malton
31534317d8 fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-03 13:39:45 -05:00
Roman
1b492f27ad
Allow to quick select/deselect all namespaces in NamespaceSelect (#2068)
* allow to quick select/deselect all namespaces in `NamespaceSelect`

Signed-off-by: Roman <ixrock@gmail.com>

* fixes & refactoring

Signed-off-by: Roman <ixrock@gmail.com>
2021-02-03 19:01:45 +02:00
Jari Kolehmainen
2c99cd0429
Release v4.1.0-alpha.2 (#2064)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-03 18:24:12 +02:00
Sebastian Malton
2bbdd168d6 add install docs for linux
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-03 10:15:13 -05:00
Sebastian Malton
f2df7c764e improve docs, export types for extensions, skip integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-03 10:03:37 -05:00
Sebastian Malton
437c75bd4a killall during teardown
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 17:10:22 -05:00
Sebastian Malton
d3f8ebcf76 revert bad rebase
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 17:03:41 -05:00
Sebastian Malton
8e9a0cc4b7 add waiting for renderer and extensions to load before broadcasting handlers
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 16:28:52 -05:00
Sebastian Malton
7ea0a7fa4b fix integration tests locally
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 14:49:00 -05:00
dependabot[bot]
068ab855c1
Bump @typescript-eslint/eslint-plugin from 4.12.0 to 4.14.2 (#2056)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.12.0 to 4.14.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.14.2/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 10:42:31 -05:00
Sebastian Malton
401908f4e5 stop getting logs on test timeout
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 10:37:16 -05:00
Arthur Lutz
e273bd71f2
Tray: change order of items, Open first (#2059)
Fixes #2032

Signed-off-by: Arthur Lutz <arthur.lutz@logilab.fr>
2021-02-02 16:07:13 +02:00
Sebastian Malton
624b7b50ee change open to be a dev dep
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:51:23 -05:00
Sebastian Malton
fed90f3de6 fix lint
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2021-02-02 08:51:22 -05:00
Sebastian Malton
aa5909bdd1 get protocol handling working for linux
Signed-off-by: Sebastian Malton <smalton@mirantis.com>
2021-02-02 08:51:05 -05:00
Sebastian Malton
bce07796b1 fix package.json
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:48 -05:00
Sebastian Malton
117c833e2c testing handling on linux
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:48 -05:00
Sebastian Malton
f8b36055f5 fix unit and integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:46 -05:00
Sebastian Malton
0062395550 resolve pr comment
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:35 -05:00
Sebastian Malton
f97002828f change internal hostname to app, revert spacing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:33 -05:00
Sebastian Malton
2ee1d3d794 fix integration tests and markdown
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:49:07 -05:00
Sebastian Malton
bfc335a43c fix unit tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:46 -05:00
Sebastian Malton
4a98d9717d reintroduce renderer routing
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:45 -05:00
Sebastian Malton
6c4c2b714b Fix unit tests and update docs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:28 -05:00
Sebastian Malton
2544ba9e09 Convert the extension API to use an array for registering handlers
- switch design to execute both main and renderer handlers
  simaltaneously, without any overlap checking

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:26 -05:00
Sebastian Malton
e7ee7fe2b0 Auto-clean extension handlers on deactivation
- remove handlers when an extension is deactivated or removed

- make sure that the found extension when routing a request is currently
  enabled (as a backup)

- added documentation about the above behaviour to the guide

- tweaked the naming convension so that it is clearer that the router
  uses extension names as not IDs (which currently are folder paths)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:03 -05:00
Sebastian Malton
8430b67d55 Add lens:// protocol handling with a routing mechanism
- document the methods in an extension guide

- add integration test to make sure that all tested OSes work as
  intended

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-02 08:48:01 -05:00
Jari Kolehmainen
21adda2c64
Fix release-drafter yaml error (#2062)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-02 15:34:12 +02:00
Carl Reid
88c490ae14
Allow for changing installation directory on Windows (#1978)
Signed-off-by: Carl Reid <carl.reid@bestseller.com>
2021-02-02 15:09:32 +02:00
Jameel Al-Aziz
a2f4fac720
Allow namespace to specified on role creation (#2020)
* Allow users to specify the namespace when creating a custom role.
* Default role namespace remains the "global" namespace allowing for
  cluster role creatoin.

Signed-off-by: Jameel Al-Aziz <me@jalaziz.io>
2021-02-02 14:53:46 +02:00
Lauri Nevala
da1d0d162f
Add missing envFrom.secretRef property to IPodContainer (#2044)
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
2021-02-02 14:44:07 +02:00
Jari Kolehmainen
3dce0aee18
Add exclude-labels to release-drafter (#2061)
* add exclude-labels to release-drafter

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* add dl links to release-drafter template

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-02 14:43:44 +02:00
Jari Kolehmainen
b5e7be7591
Initial command palette feature (#1957)
* wip: command palette

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* register shortcut to global menu

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* introduce openCommandDialog & closeCommandDialog

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix ipc broadcast to frames from renderer

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* tweak

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* add more commands

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* ipc fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* add integration tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* ipc fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* implement workspace edit

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* workspace edit fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* make tests green

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fixes from code review

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup ipc

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup CommandRegistry

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* ipc fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix ClusterManager cluster auto-init

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* ensure cluster view is active before sending a command

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* switch to last active cluster when workspace change

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* tweak integration tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* run integration tests serially

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fixes based on code review

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup more

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* add workspace fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-02 12:34:13 +02:00
Alex Andreev
9e1487685c
Fix: charts stripes alignment (#2054)
* Align chart stripe on every dataset update

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

* Removing default stripes interval

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-02-02 11:45:45 +03:00
Jari Kolehmainen
06b884f3fb
Fix release-drafter yaml error (#2058)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-02 09:42:14 +02:00
Jari Kolehmainen
f8412eaf13
Add release-drafter (#2055)
* add release-drafter

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* add release-drafter

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix token

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-02 09:32:41 +02:00
Jari Kolehmainen
1599ee4f6a
Add deb & rpm packages (#2053)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-02-01 16:51:27 +02:00
Roman
078f952b36
Watch-api streaming reworks (#1990)
* loading k8s resources into stores per selected namespaces -- part 1

Signed-off-by: Roman <ixrock@gmail.com>

* loading k8s resources into stores per selected namespaces -- part 2
- fix: generating helm chart id

Signed-off-by: Roman <ixrock@gmail.com>

* loading k8s resources into stores per selected namespaces -- part 3

Signed-off-by: Roman <ixrock@gmail.com>

* fixes

Signed-off-by: Roman <ixrock@gmail.com>

* fixes / responding to comments

Signed-off-by: Roman <ixrock@gmail.com>

* chore / small fixes

Signed-off-by: Roman <ixrock@gmail.com>

* Watch api does not work for non-admins with lots of namespaces #1898 -- part 1

Signed-off-by: Roman <ixrock@gmail.com>

* fixes & refactoring

Signed-off-by: Roman <ixrock@gmail.com>

* make lint happy

Signed-off-by: Roman <ixrock@gmail.com>

* reset store on loading error

Signed-off-by: Roman <ixrock@gmail.com>

* added new cluster method: cluster.isAllowedResource

Signed-off-by: Roman <ixrock@gmail.com>

* fix: loading namespaces optimizations

Signed-off-by: Roman <ixrock@gmail.com>

* fixes & refactoring

Signed-off-by: Roman <ixrock@gmail.com>

* fix: parse multiple kube-events from stream's chunk

Signed-off-by: Roman <ixrock@gmail.com>

* fix: mobx issue with accessing empty observable array by index (removes warning), use common logger

Signed-off-by: Roman <ixrock@gmail.com>

* fine-tuning

Signed-off-by: Roman <ixrock@gmail.com>

* fix: parse json stream chunks at client-side (might be partial, depends on network speed)

Signed-off-by: Roman <ixrock@gmail.com>

* store subscribing refactoring -- part 1

Signed-off-by: Roman <ixrock@gmail.com>

* store subscribing refactoring -- part 2

Signed-off-by: Roman <ixrock@gmail.com>

* store subscribing refactoring -- part 3

Signed-off-by: Roman <ixrock@gmail.com>

* store subscribing refactoring -- part 4

Signed-off-by: Roman <ixrock@gmail.com>

* auto-reconnect on online/offline status change, interval connection check

Signed-off-by: Roman <ixrock@gmail.com>

* check connection every 5m

Signed-off-by: Roman <ixrock@gmail.com>

* split concurrent watch-api requests by 10 at a time + 150ms delay before next call

Signed-off-by: Roman <ixrock@gmail.com>

* refactoring / clean up

Signed-off-by: Roman <ixrock@gmail.com>

* use `plimit` + delay for k8s watch requests

Signed-off-by: Roman <ixrock@gmail.com>

* lint fix

Signed-off-by: Roman <ixrock@gmail.com>

* added explicit `preload: true` when subscribing stores

Signed-off-by: Roman <ixrock@gmail.com>

* kubeWatchApi refactoring / fine-tuning

Signed-off-by: Roman <ixrock@gmail.com>

* clean up

Signed-off-by: Roman <ixrock@gmail.com>
2021-02-01 15:49:32 +02:00
Sebastian Malton
7490b15aad
update extensions' package-lock files (#2043)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-01 08:40:58 -05:00
Alex Andreev
79234dcbf9
Fix jest window.matchMedia() error warnings (#2037)
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-01-29 08:18:25 +02:00
Jari Kolehmainen
27439907b4
makefile: regenerate node_modules if yarn.lock changes (#2041)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-01-28 19:03:33 +02:00
Alex Andreev
3640f313b3
Enabling configurable columns for all major tables (#2029)
* Configurable columns in Deployments table

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

* Configurable columns in DaemonSets table

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

* Configurable columns in StatefulSets table

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

* Configurable columns in ReplicaSets table

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

* Configurable columns in Jobs table

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

* Configurable columns in CronJobs table

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

* Configurable columns in Nodes table

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

* Configurable columns in ConfigMaps table

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

* Configurable columns in Secrets table

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

* Configurable columns in ResourceQuota table

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

* Configurable columns in LimitRanges table

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

* Configurable columns in HPAs table

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

* Configurable columns in PodDistributionBudget table

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

* Configurable columns in Services table

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

* Configurable columns in Endpoints table

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

* Configurable columns in Ingresses table

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

* Configurable columns in NetworkPolicies table

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

* Configurable columns in Storage section

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

* Configurable columns in Namespaces table

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

* Configurable columns in Events table

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

* Configurable columns in Apps section

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

* Configurable columns in Access Control section

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

* Configurable columns in CRDs tables

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-01-28 12:18:45 +03:00
Jari Kolehmainen
a102ebad62
Bundle kubectl 1.18.15 (#2028)
* bundle kubectl v1.18.15

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* bump kubectl version map

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-01-27 20:09:11 +02:00
Jari Kolehmainen
e3db77f7ab
Better extensionRoutes.keys() iteration (#2031)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-01-27 20:05:12 +02:00
Jari Kolehmainen
227a149782
Release v4.1.0-alpha.1 (#2026)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-01-27 20:04:50 +02:00
Alex Andreev
a157eb03e6
Generic logs view with Pod selector (#1984)
* Adding LogTabStore

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

* Adding Pod selector in logs tab

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

* Refresh containers on pod change

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

* Adding <LogResourceSelector /> tests

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

* Adding LogTabStore tests

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

* Clearn getPodsByOwnerId method

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

* Extracting dummy pods into mock file

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

* Eliminating containers and initContainers from store

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

* Refreshing tab pods if pod amount is changed in store

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

* A bit of cleaning up, fixing tests

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

* Fix lint newline errors

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

* Return getPodsByOwner() method

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

* Rename log tab when pod changes

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-01-27 17:20:02 +03:00