Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export getPodsByOwnerId to extension API #7225

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

apialaviiva
Copy link
Contributor

No description provided.

@apialaviiva apialaviiva added the enhancement New feature or request label Feb 23, 2023
}

export class CronJobStore extends KubeObjectStore<CronJob, CronJobApi> {
constructor(protected readonly dependencies: Dependencies, api: CronJobApi, opts?: KubeObjectStoreOptions) {
super(dependencies, api, opts);
}

getChildPods(cronJob: CronJob): Pod[] {
return this.dependencies.getPodsByOwnerId(cronJob.getId());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to export getPodsByOwnerId to the extension API?

@apialaviiva apialaviiva changed the title Add support for Service and CronJob vulnerabilities display Support getting related Pods Feb 23, 2023
@apialaviiva apialaviiva force-pushed the resource-details-vulnerabilities branch from ab15c39 to 613d25e Compare March 2, 2023 08:38
@apialaviiva apialaviiva force-pushed the resource-details-vulnerabilities branch from 613d25e to 34c2e87 Compare March 22, 2023 07:59
@apialaviiva apialaviiva marked this pull request as ready for review March 22, 2023 12:11
@apialaviiva apialaviiva requested a review from a team as a code owner March 22, 2023 12:11
@apialaviiva apialaviiva requested review from ixrock and aleksfront and removed request for a team March 22, 2023 12:11
@panuhorsmalahti panuhorsmalahti added this to the 6.5.0 milestone Mar 22, 2023
Signed-off-by: Sebastian Malton <sebastian@malton.name>
@Nokel81 Nokel81 force-pushed the resource-details-vulnerabilities branch from 34c2e87 to a5f5e7a Compare March 24, 2023 12:13
@Nokel81 Nokel81 changed the title Support getting related Pods Export getPodsByOwnerId to extension API Mar 24, 2023
@Nokel81 Nokel81 added the area/extension Something to related to the extension api label Mar 24, 2023
@Nokel81 Nokel81 merged commit 8dc0177 into master Mar 24, 2023
@Nokel81 Nokel81 deleted the resource-details-vulnerabilities branch March 24, 2023 14:17
@Nokel81 Nokel81 mentioned this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extension Something to related to the extension api enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants