mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Export getPodsByOwnerId to extension API (#7225)
Signed-off-by: Sebastian Malton <sebastian@malton.name> Co-authored-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
3931c90d30
commit
8dc0177cb2
5 files changed
+16
-2
No files matched your search
@@ -18,6 +18,9 @@ export class DaemonSetStore extends KubeObjectStore<DaemonSet, DaemonSetApi> {
|
||||
super(dependencies, api, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Switch to using `getPodsByOwnerId` directly
|
||||
*/
|
||||
getChildPods(daemonSet: DaemonSet): Pod[] {
|
||||
return this.dependencies.getPodsByOwnerId(daemonSet.getId());
|
||||
}
|
||||
|
||||
@@ -19,6 +19,9 @@ export class JobStore extends KubeObjectStore<Job, JobApi> {
|
||||
super(dependencies, api, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Switch to using `getPodsByOwnerId` directly
|
||||
*/
|
||||
getChildPods(job: Job): Pod[] {
|
||||
return this.dependencies.getPodsByOwnerId(job.getId());
|
||||
}
|
||||
|
||||
@@ -18,6 +18,9 @@ export class ReplicaSetStore extends KubeObjectStore<ReplicaSet, ReplicaSetApi>
|
||||
super(dependencies, api, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Switch to using `getPodsByOwnerId` directly
|
||||
*/
|
||||
getChildPods(replicaSet: ReplicaSet) {
|
||||
return this.dependencies.getPodsByOwnerId(replicaSet.getId());
|
||||
}
|
||||
|
||||
@@ -18,6 +18,9 @@ export class StatefulSetStore extends KubeObjectStore<StatefulSet, StatefulSetAp
|
||||
super(dependencies, api, opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Switch to using `getPodsByOwnerId` directly
|
||||
*/
|
||||
getChildPods(statefulSet: StatefulSet) {
|
||||
return this.dependencies.getPodsByOwnerId(statefulSet.getId());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user