1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common/utils
Sebastian Malton 83d2b12cca
Refactor kube detail components and add KubeEvents automatically to all custom resources (#6468)
* Support Events on CustomResourece details panel

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

* Remove unnecessary check

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

* Remove legacy KubeObjectMeta use from non-metrics details

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

* Change orderNumber of default KubeMetaDetails

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

* Remove last use of legacy global getActiveClusterEntity

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

* Refactor ResourceMetrics to use IAsyncComputed

- Introduce first use for namespace metrics

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

* Introduce metrics details item for Ingress

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

* Remove legacyStore for nodes

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

* Remove legacyStore for ingresses

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

* Replace NodeMetrics in details with injectable

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

* Change namespace metrics details to use more injectables

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

* Change ingress metrics details to use more injectables

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

* Change PersistentVolumeClaim metrics to be injectable

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

* Change DaemonSet metrics to be injectable

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

* Change Deployment metrics to be injectable

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

* Change Job metrics to be injectable

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

* Convert Pod metrics to be injectable

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

* Make ReplicaSet metrics details injectable

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

* Make StatefulSet metrics component injectable

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

* Remove dead code

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

* Introduce fix for metrics components visible on all details

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

* Use the new and correct enabled check

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

* Remove legacy global for daemonSetStore

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

* Switch components to be static to help with React performance

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

* Remove legacy store of CronJobs

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

* Make DeploymentReplicaSets injectable to fix build error

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

* Fix up remove dead code

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

* Allow use of ResourceMetrics without IAsyncComputed

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

* Fix metrics not updating correctly

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

* Update snapshots because moving KubeObjectMeta out of CustomResourceDetails

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

* Fix tests

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

* Update more snapshots

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

* Fix test failures due to newer dep versions

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

* Fix type errors from new asyncComputed

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

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-15 10:14:00 -05:00
..
__tests__ Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
add-separator Refactor and transform "Application update", "Preferences" and "Application menu" into Features (#6437) 2022-10-26 11:16:23 -04:00
channel Improve UX for shell env sync failure (#6644) 2022-11-25 04:53:09 -08:00
composable-responsibilities Make EntitySettingRegistry fully injectable (#6604) 2022-11-28 12:13:15 -05:00
composite Refactor and transform "Application update", "Preferences" and "Application menu" into Features (#6437) 2022-10-26 11:16:23 -04:00
date Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
find-exactly-one Refactor and transform "Application update", "Preferences" and "Application menu" into Features (#6437) 2022-10-26 11:16:23 -04:00
is-promise Introduce way to install update directly from tray. Make application updater unit testable... (#5433) 2022-06-03 11:21:36 +03:00
observable-crate Fix check on NamespaceSelectFilter not updating (#5691) 2022-07-07 11:59:33 -04:00
reactive-now Fix stuff happening based on timers not being run correctly in unit tests (#5764) 2022-07-01 19:40:34 +03:00
resolve-system-proxy Add better type safety around Channels (#6133) 2022-10-13 07:50:19 -04:00
sync-box Add better type safety around Channels (#6133) 2022-10-13 07:50:19 -04:00
with-error-logging Refactor and transform "Application update", "Preferences" and "Application menu" into Features (#6437) 2022-10-26 11:16:23 -04:00
with-error-suppression Bump @async-fn/jest from 1.6.1 to 1.6.2 (#5808) 2022-07-08 08:43:02 -04:00
with-orphan-promise Refactor and transform "Application update", "Preferences" and "Application menu" into Features (#6437) 2022-10-26 11:16:23 -04:00
abort-controller.ts Upgrade to latest node-fetch (#6046) 2022-11-14 10:46:53 -05:00
app-version.ts Clean up versioning and packageJson uses (#6196) 2022-09-15 17:20:58 -04:00
array.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
async-result.ts Remove global version of appEventBus (#6096) 2022-10-31 14:59:05 +02:00
autobind.ts Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00
base64.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
binary-name.injectable.ts Make PrometheusProviderRegistry fully injectable (#6592) 2022-11-25 09:19:57 -05:00
buildUrl.ts Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
bundled-binary-path.injectable.ts Make PrometheusProviderRegistry fully injectable (#6592) 2022-11-25 09:19:57 -05:00
camelCase.ts Change notification when extension is not found (#5184) 2022-10-11 10:40:02 -04:00
cluster-id-url-parsing.ts Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00
collection-functions.ts Make base store non Singleton (#6690) 2022-12-15 17:07:19 +02:00
convertCpu.ts Fix ResourceQuotaDetails quotas display bugs (#5909) 2022-08-05 14:02:35 -04:00
convertMemory.ts Fix parsing memory metrics expecting wrong unit suffix (#5585) 2022-06-30 08:25:56 -04:00
debouncePromise.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
delay.ts Use abort-controller package to fix typing issues (#6077) 2022-08-22 11:18:01 -04:00
disposer.ts Add better type safety around Channels (#6133) 2022-10-13 07:50:19 -04:00
environment-variables.injectable.ts Make starting of application modular and unit testable (#5324) 2022-05-18 16:18:02 +03:00
escapeRegExp.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
formatDuration.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
generate-new-id-for.ts Make base store non Singleton (#6690) 2022-12-15 17:07:19 +02:00
get-error-message.ts Stop using HelmCli from Renderer (#4861) 2022-06-13 11:42:53 +03:00
get-random-id.injectable.ts Fix installation of helm charts (#5841) 2022-07-20 08:15:27 +03:00
get-startable-stoppable.test.ts Refactor runnables (#6528) 2022-11-07 19:04:56 +02:00
get-startable-stoppable.ts Refactor runnables (#6528) 2022-11-07 19:04:56 +02:00
getRandId.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
hash-set.ts Enable consistent-type-imports eslint rule (#5205) 2022-04-06 10:34:16 -04:00
index.ts Change notification when extension is not found (#5184) 2022-10-11 10:40:02 -04:00
is-allowed-resource.injectable.ts Move phenomenon of renderer out from common by introducing different implementations for environments 2022-06-16 08:44:38 -04:00
iter.ts Fix kubeconfig-sync sometimes producing multiple identical entities (#5855) 2022-10-03 10:38:41 -04:00
json.ts Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00
n-fircate.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
noop.ts Fix check on NamespaceSelectFilter not updating (#5691) 2022-07-07 11:59:33 -04:00
objects.ts Fix loading helm release details (#6318) 2022-10-07 09:16:36 -04:00
open-link-in-browser.global-override-for-injectable.ts Remove usage of deprecated xtermjs's registerLinkMatcher API (#5996) 2022-08-09 19:25:11 -07:00
open-link-in-browser.injectable.ts Remove usage of deprecated xtermjs's registerLinkMatcher API (#5996) 2022-08-09 19:25:11 -07:00
promise-exec.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
random-bytes.global-override-for-injectable.ts Make base store non Singleton (#6690) 2022-12-15 17:07:19 +02:00
random-bytes.injectable.ts Make base store non Singleton (#6690) 2022-12-15 17:07:19 +02:00
readableStream.ts Bump typescript from 4.8.4 to 4.9.3 (#6606) 2022-11-18 10:10:23 -05:00
readonly.ts Add ability to hide KubeObjectMenu Edit and Remove buttons in extensions (#5107) 2022-05-04 12:44:31 -04:00
reject-promise.ts Use abort-controller package to fix typing issues (#6077) 2022-08-22 11:18:01 -04:00
singleton.ts Make base store non Singleton (#6690) 2022-12-15 17:07:19 +02:00
sort-compare.ts Making apiBase injectable (#6022) 2022-10-05 08:10:36 -04:00
sort-function.ts Refactor kube detail components and add KubeEvents automatically to all custom resources (#6468) 2022-12-15 10:14:00 -05:00
splitArray.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
tar.ts Bump @types/tar from 6.1.2 to 6.1.3 (#6380) 2022-10-11 09:06:07 -04:00
toJS.ts Shorten license header to reduce amount of clutter in top of the files (#4709) 2022-01-18 10:18:10 +02:00
tuple.ts Fix Pod Container sorting not correlating to visuals (#5175) 2022-08-02 12:44:32 -04:00
type-narrowing.ts Make base store non Singleton (#6690) 2022-12-15 17:07:19 +02:00
types.ts Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00
union-env-path.ts Fix completely overriding PATH in shellSync (#5451) 2022-08-09 10:08:56 -04:00
wait-for-path.ts Full dependency inversion of <Dock> and all current tab kinds (#4757) 2022-01-31 09:49:36 -05:00
wait.ts Turn on strict mode in tsconfig.json, some helpful lints, and required cleanup where strictness necessitates it (#5195) 2022-05-16 07:17:57 -04:00