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

Get pods & owners #427

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Get pods & owners #427

wants to merge 15 commits into from

Conversation

olevitt
Copy link
Contributor

@olevitt olevitt commented Jun 4, 2024

No description provided.

String name = ownerReference.getName();

// Fetch the owner resource
HasMetadata ownerResource = fetchOwnerResource(resource.getMetadata().getNamespace(), kind, name, client);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need to optimize this to prevent multiple fetching of the same resource.
A cache local to the function should help a lot

Copy link

sonarcloud bot commented Jun 10, 2024

Quality Gate Passed Quality Gate passed

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@garronej
Copy link
Contributor

Just maybe podsAndOwners-> pods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants