mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Improve the injectability of cluster metadata detection
- Remove unnecessary and complex base class Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
bb7bdf2264
commit
9a9464ef58
21 files changed
+444
-434
No files matched your search
@@ -29,9 +29,12 @@ const createClusterInjectable = getInjectable({
|
||||
createAuthorizationReview: () => { throw new Error("Tried to access back-end feature in front-end."); },
|
||||
requestNamespaceListPermissionsFor: () => { throw new Error("Tried to access back-end feature in front-end."); },
|
||||
createListNamespaces: () => { throw new Error("Tried to access back-end feature in front-end."); },
|
||||
requestApiResources: ()=> { throw new Error("Tried to access back-end feature in front-end."); },
|
||||
detectorRegistry: undefined as never,
|
||||
createVersionDetector: () => { throw new Error("Tried to access back-end feature in front-end."); },
|
||||
requestApiResources: () => { throw new Error("Tried to access back-end feature in front-end."); },
|
||||
detectClusterMetadata: () => { throw new Error("Tried to access back-end feature in front-end."); },
|
||||
clusterVersionDetector: {
|
||||
detect: () => { throw new Error("Tried to access back-end feature in front-end."); },
|
||||
key: "irrelavent",
|
||||
},
|
||||
};
|
||||
|
||||
return (model, configData) => new Cluster(dependencies, model, configData);
|
||||
|
||||
Reference in new issue
Block a user