1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/main/routes
Jari Kolehmainen 8fff064e0c
Fix kubeconfig-sync issues (#2692)
- Removed `getFreePort` as its use is always a race condition. Change
  all uses of it to retrive the port after listening

- Added `getPortFrom` as a helper function to read a port from a stream

- Remove `Cluster.ownerRef` as it is outdated and no longer needed for 5.0

- Remove `Cluster.enabled`, no longer needed because of above

- Removed `Cluster.init`, moved its contents into `Cluster.constructor`
  as nothing in that function is asyncronous. Currently only being run
  on `main` as a stop gap until `renderer` gets its own version of
  `Cluster`

- Refactored `LensProxy` so as to prevent `pty.node` (a NodeJS
  extension) being included in `webpack.extension.ts`'s run

- Removed the passing around of the proxy port as that can now be
  accessed from an instance of `LensProxy`

- purge ContextHandler's cache on disconnect

Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-05-04 15:21:15 -04:00
..
helm-route.ts Add support for viewing 'User-supplied values' of helm release (#1862) 2021-04-20 11:47:38 -04:00
index.ts Refactor watches to use native k8s api (#2095) 2021-02-09 15:31:15 +02:00
kubeconfig-route.ts Fix: Recreate proxy kubeconfig if it is deleted (#2372) 2021-03-23 08:12:01 -04:00
metrics-route.ts Fix kubeconfig-sync issues (#2692) 2021-05-04 15:21:15 -04:00
port-forward-route.ts Fix kubeconfig-sync issues (#2692) 2021-05-04 15:21:15 -04:00
resource-applier-route.ts Add eslint rule padding-line-between-statements (#1593) 2020-12-02 09:55:52 +02:00
version-route.ts Add more log entries on start up (#1955) 2021-02-04 19:19:11 +02:00