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:
Antti LustilaandSebastian Malton authored and GitHub committed 2023-03-24 10:17:13 -04:00
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());
}