mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Complete a majority of the rest of DI
- All KubeApi and KubeObjectStore's - All of Catalog - ApiManager - KubeObjectDetailRegistry - All BaseStore's and their migrations - LensProxy and Router - WindowManager - App Menu - Tray Icon - ThemeStore Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
6cba82c491
commit
1747cbf6c8
1345 files changed
+34694
-27702
No files matched your search
@@ -5,9 +5,8 @@
|
||||
|
||||
import { KubeObject } from "../kube-object";
|
||||
import { autoBind, unitsToBytes } from "../../utils";
|
||||
import { KubeApi } from "../kube-api";
|
||||
import { KubeApi, SpecificApiOptions } from "../kube-api";
|
||||
import type { KubeJsonApiData } from "../kube-json-api";
|
||||
import { isClusterPageContext } from "../../utils/cluster-id-url-parsing";
|
||||
|
||||
export interface PersistentVolume {
|
||||
spec: {
|
||||
@@ -86,14 +85,11 @@ export class PersistentVolume extends KubeObject {
|
||||
}
|
||||
}
|
||||
|
||||
let persistentVolumeApi: KubeApi<PersistentVolume>;
|
||||
|
||||
if (isClusterPageContext()) {
|
||||
persistentVolumeApi = new KubeApi({
|
||||
objectConstructor: PersistentVolume,
|
||||
});
|
||||
export class PersistentVolumeApi extends KubeApi<PersistentVolume> {
|
||||
constructor(args: SpecificApiOptions<PersistentVolume> = {}) {
|
||||
super({
|
||||
...args,
|
||||
objectConstructor: PersistentVolume,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
persistentVolumeApi,
|
||||
};
|
||||
Reference in new issue
Block a user