1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common
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
..
__tests__ enfore unix line endings and always ending files with line endings (#1997) 2021-01-21 08:09:41 -05:00
utils Watch-api streaming reworks (#1990) 2021-02-01 15:49:32 +02:00
.gitkeep Lens app source code (#119) 2020-03-15 09:52:02 +02:00
base-store.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
cluster-frames.ts Fix Electron 9.4 frame ipc bug (#1888) 2021-01-04 14:16:35 +02:00
cluster-ipc.ts Fix Electron 9.4 frame ipc bug (#1888) 2021-01-04 14:16:35 +02:00
cluster-store.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
custom-errors.ts enfore unix line endings and always ending files with line endings (#1997) 2021-01-21 08:09:41 -05:00
event-bus.ts Use @typescript-eslint/semi. 2020-11-19 18:12:52 +02:00
event-emitter.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
ipc.ts Fix Electron 9.4 frame ipc bug (#1888) 2021-01-04 14:16:35 +02:00
kube-helpers.ts enfore unix line endings and always ending files with line endings (#1997) 2021-01-21 08:09:41 -05:00
prometheus-providers.ts enfore unix line endings and always ending files with line endings (#1997) 2021-01-21 08:09:41 -05:00
rbac.ts Load k8s resources only for selected namespaces (#1918) 2021-01-22 13:18:46 +02:00
register-protocol.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
request.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
search-store.ts Generic logs view with Pod selector (#1984) 2021-01-27 17:20:02 +03:00
system-ca.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
user-store.ts Load k8s resources only for selected namespaces (#1918) 2021-01-22 13:18:46 +02:00
vars.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
workspace-store.ts Enable default workspace on first boot (#1965) 2021-01-19 06:30:05 +02:00