1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common
Jim Ehrismann 07c8177a97
Feature/port forward dashboard (#3922)
* Added ability to add custom port on pod and service port forwarding (#3295)

* Added ability to add custom port on pod and service port forwarding

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>

* Added ability to add custom port on pod and service port forwarding

- pod-container-port fixed init async and active port checking
- service-port-component fixed init async and active port checking
- port-forward-route promise and response fix

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>

* Added ability to add custom port on pod and service port forwarding

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>

* - Added Custom Port Selection for port forwarding
- Implemented Random Port if custom port is not provided

Signed-off-by: rdeepc <12953177+rdeepc@users.noreply.github.com>

Co-authored-by: Saumya Shovan Roy <saumyashovanroy@gmail.com>

* cherry-pick of hackweek work plus merge conflicts/build errors

    added a route to get all port forwards

    Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

    Added Forwarded Ports to cluster dashboard

    Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

    working port-forward page (open, edit, remove)

    Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

    added local storage to the port-forward store

    Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

    automatically restore port-forward after pod is restarted

    Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

    start port-forwards using random local port by default, rearranged pod and service port-forward UI

    Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* refactor

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* more refactoring, don't always open port-forwards in browser, refined reused port-forward dialog

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* removed unimplemented forwarded port details page,modified logging

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* addressed some review comments

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* made port and forwardPort query params and cleaned up port-forward routing paths

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* address more review comments and change dashboard tab name to 'Port Forwarding'

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* changed port and forwardPort fields to be Numbers

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* removed extraneous reset() call, reorder field declarations

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* port-forward now gets the bundled kubectl path without going through the 'ensureKubectl' hoops

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* more cleanup/tweaking

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

* fix bug where port-forward info did not update on pod details page when different pod (in same deployment?) is clicked

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>

Co-authored-by: Saumya Shovan Roy (Deep) <12953177+rdeepc@users.noreply.github.com>
Co-authored-by: Saumya Shovan Roy <saumyashovanroy@gmail.com>
2021-10-07 15:51:26 -04:00
..
__tests__ Add CatalogCategory filter to the extension API (#3718) 2021-09-13 15:46:28 +03:00
catalog Change onBeforeRun API (#3981) 2021-10-07 12:43:50 -04:00
catalog-entities Emit contextMenuOpen for WebLink CatalogEntity (#3842) 2021-09-20 10:09:51 -04:00
ipc Make ipc.boradcast not stopping at uncaught exceptions, improve typing, improve error logs (#3717) 2021-09-02 13:20:18 +03:00
k8s Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777) 2021-05-19 12:11:54 -04:00
k8s-api Catch metadata being undefined at KubeObject creation (#3960) 2021-10-07 10:09:21 -04:00
logger-transports Add back sentry winston logger transport (#3602) 2021-08-12 11:01:39 -04:00
protocol-handler Track extension provisions and check bundled for routing (#3187) 2021-06-25 13:28:07 -04:00
routes Feature/port forward dashboard (#3922) 2021-10-07 15:51:26 -04:00
user-store Add terminal copy on select (#3904) 2021-09-29 08:55:39 -04:00
utils Switch integration tests to get application menus by IDs (#3912) 2021-10-07 15:30:52 -04:00
.gitkeep Lens app source code (#119) 2020-03-15 09:52:02 +02:00
base-store.ts Upgrade to electron 12 and Node 14 (#3572) 2021-08-26 12:13:31 -04:00
cluster-frames.ts Send LensMainExtension.nagivate calls to renderer before navigating (#3082) 2021-06-17 12:59:27 +03:00
cluster-ipc.ts Fix local cluster delete flow (#3473) 2021-09-08 15:06:14 +03:00
cluster-store.ts Move cluster related types and function into seperate files (#3530) 2021-08-03 10:36:14 -04:00
cluster-types.ts Allow to configure default namespace used in terminal (#3706) 2021-09-01 12:50:11 +03:00
configure-packages.ts Mobx-6 migration (#2718) 2021-05-25 10:24:31 +03:00
custom-errors.ts Revert "Fix check for user exec command (#3664)" (#3827) 2021-09-17 11:13:04 +03:00
event-bus.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
event-emitter.ts Cleanup <EventEmitter> (#3338) 2021-07-20 08:39:44 -04:00
getTSLoader.ts Add esbuild/esbuild-loader to reduce memory usage when make dev (#3220) 2021-06-30 08:05:02 -04:00
hotbar-store.ts Make sure that there are only ever 12 slots in a hotbar (#3379) 2021-08-04 10:37:08 +03:00
hotbar-types.ts Move Hotbar types to seperate file (#3532) 2021-08-03 14:38:36 -04:00
item.store.ts Refactor k8s api to common (#3553) 2021-08-10 13:26:14 +03:00
kube-helpers.ts Revert "Fix check for user exec command (#3664)" (#3827) 2021-09-17 11:13:04 +03:00
logger.ts Disable log file writing on renderer (#3874) 2021-09-23 12:36:53 +03:00
rbac.ts Remove circular dependency with isAllowedResource function (#3545) 2021-08-04 16:01:47 -04:00
register-protocol.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
request.ts Check source files for license header (#2763) 2021-05-12 18:33:26 +03:00
search-store.ts Mobx-6 migration (#2718) 2021-05-25 10:24:31 +03:00
sentry.ts Stop Sentry from capturing console.error and logger.error (#3785) 2021-09-13 10:56:12 +03:00
system-ca.ts Remove win-ca/pem before publish & catch inject error (#3362) 2021-07-13 11:40:52 -04:00
vars.ts updated expired community slack invite link with permanent one (#3906) 2021-09-28 12:50:34 -04:00
weblink-store.ts Treat default weblinks same as any other weblinks (#3385) 2021-07-22 20:28:01 -04:00