You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##### Short description:
Admin Client is used to CRUD cluster resources.
`admin_client` provides this client, and all functions calling
ocp_resources resources must get a client as an attributes.
There are, however, places in the code (i.e in pytest-native fixtures or
during pre-execution hooks) that the `admin_client` cannot be
accessible.
While there are pytest hacks to use the fixture, we should take a
simple, clear approach.
The usage must be very limited, the existing `_cache_admin_client` is
now public to allow re-using it in places described above.
##### More details:
##### What this PR does / why we need it:
##### Which issue(s) this PR fixes:
##### Special notes for reviewer:
##### jira-ticket:
<!-- full-ticket-url needs to be provided. This would add a link to the
pull request to the jira and close it when the pull request is merged
If the task is not tracked by a Jira ticket, just write "NONE".
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Expanded architecture detection tests with comprehensive coverage for
multiple CPU architectures and node configurations.
* Updated test infrastructure to support new client caching mechanism.
* **Chores**
* Centralized client management through a new cached utility function
for improved resource efficiency and consistency across codebase.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments