1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/core/src/main/cluster-detectors
Sebastian Malton fe2fd4c1fd
Move Cluster.apiUrl to seperate injectable (#7354)
* Refactor out Cluster.apiUrl to direct reading

- Should help prevent using stale data

- Removes some uses of synchronous FS operations

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

* Fix type errors

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

* Rename helper function to better communicate intent

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

* Improve prometheus handler tests to override less things

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

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-31 15:28:14 -04:00
..
cluster-distribution-detector.injectable.ts Move Cluster.apiUrl to seperate injectable (#7354) 2023-03-31 15:28:14 -04:00
cluster-id-detector.injectable.ts Move Cluster.apiUrl to seperate injectable (#7354) 2023-03-31 15:28:14 -04:00
cluster-last-seen-detector.injectable.ts Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
cluster-nodes-count-detector.injectable.ts Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
cluster-version-detector.injectable.ts Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
detect-cluster-metadata.injectable.ts Convert runMany and runManySync to use injectManyWithMeta + move to seperate package (#7244) 2023-03-10 10:07:28 +02:00
detect-cluster-metadata.test.ts Move Cluster.apiUrl to seperate injectable (#7354) 2023-03-31 15:28:14 -04:00
request-cluster-version.injectable.ts Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
token.ts Cleanup 'Cluster' to remove environment specific details (#6951) 2023-03-10 09:37:39 +02:00