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

allow resource names >2 parts #343

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Conversation

edwinpjacques
Copy link
Contributor

Dynamic client discovery for resources with three part names, the processing fails. Allow for processing names with >2 parts.

This was failing on an OpenShift environment with the resource 'virtualmachineinstances/sev/fetchcertchain'

#342

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 29.41176% with 12 lines in your changes missing coverage. Please review.

Project coverage is 27.35%. Comparing base (5e5de93) to head (0eca545).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
kubernetes_asyncio/dynamic/discovery_test.py 31.25% 11 Missing ⚠️
kubernetes_asyncio/dynamic/discovery.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #343   +/-   ##
=======================================
  Coverage   27.35%   27.35%           
=======================================
  Files         795      795           
  Lines       96326    96341   +15     
=======================================
+ Hits        26347    26352    +5     
- Misses      69979    69989   +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edwinpjacques
Copy link
Contributor Author

I amended my commit to add a UT.

Copy link
Owner

@tomplus tomplus left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution 👍

kubernetes_asyncio/dynamic/discovery.py Outdated Show resolved Hide resolved
Dynamic client discovery for resources with three part names, the
processing fails. Allow for processing names with >2 parts.

This was failing on an OpenShift environment with the resource
'virtualmachineinstances/sev/fetchcertchain'
@edwinpjacques
Copy link
Contributor Author

Thanks for your contribution 👍

Glad to help! Thank you for this project, it will make enabling an K8s EDA event source possible. I think you need to approve the workflow to validate execution again.

@edwinpjacques edwinpjacques requested a review from tomplus December 7, 2024 00:41
Copy link
Owner

@tomplus tomplus left a comment

Choose a reason for hiding this comment

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

LGTM

@tomplus tomplus merged commit 193c9f2 into tomplus:master Dec 7, 2024
8 checks passed
tomplus pushed a commit that referenced this pull request Dec 8, 2024
Dynamic client discovery for resources with three part names, the
processing fails. Allow for processing names with >2 parts.

This was failing on an OpenShift environment with the resource
'virtualmachineinstances/sev/fetchcertchain'

Co-authored-by: ejacques <[email protected]>
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.

2 participants