mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix breaking changes in extension API types (#5797)
This commit is contained in:
1 parent
2a37d6bfac
commit
d44599af00
36 files changed
+234
-93
No files matched your search
@@ -9,7 +9,7 @@ import type { KubeObjectStoreOptions } from "../../../common/k8s-api/kube-object
|
||||
import { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
||||
import { cpuUnitsToNumber, unitsToBytes } from "../../utils";
|
||||
import type { Pod, PodMetrics, PodApi, PodMetricsApi } from "../../../common/k8s-api/endpoints";
|
||||
import type { KubeObject, KubeObjectScope } from "../../../common/k8s-api/kube-object";
|
||||
import type { KubeObject, NamespaceScopedMetadata } from "../../../common/k8s-api/kube-object";
|
||||
|
||||
export interface PodStoreDependencies {
|
||||
readonly podMetricsApi: PodMetricsApi;
|
||||
@@ -36,7 +36,7 @@ export class PodStore extends KubeObjectStore<Pod, PodApi> {
|
||||
}
|
||||
}
|
||||
|
||||
getPodsByOwner(workload: KubeObject<unknown, unknown, KubeObjectScope.Namespace>): Pod[] {
|
||||
getPodsByOwner(workload: KubeObject<NamespaceScopedMetadata, unknown, unknown>): Pod[] {
|
||||
return this.items.filter(pod => (
|
||||
pod.getOwnerRefs()
|
||||
.find(owner => owner.uid === workload.getId())
|
||||
|
||||
Reference in new issue
Block a user