Skip to content

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

@sonarqubecloud
Copy link

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.

4 participants