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

Gracefully handle undefined resource schemes #2504

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

lblackstone
Copy link
Member

Proposed changes

The provider includes normalization logic that converts Unstructured resource definitions to their typed equivalents and back. This conversion process requires a defined scheme, and will not work for extension resource types (CRDs, CustomResources, apiregistration, etc). If the scheme is not registered, skip this process rather than returning an error.

Related issues (optional)

Fix #2503

The provider includes normalization logic that converts Unstructured resource definitions to their typed equivalents and back. This conversion process requires a defined scheme, and will not work for extension resource types (CRDs, CustomResources, apiregistration, etc). If the scheme is not registered, skip this process rather than returning an error.
@lblackstone lblackstone requested a review from a team July 19, 2023 21:46
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@t0yv0
Copy link
Member

t0yv0 commented Jul 19, 2023

Consider adding a quick test, perhaps a unit test will do here?

@lblackstone lblackstone merged commit ed16a55 into master Jul 19, 2023
18 checks passed
@lblackstone lblackstone deleted the lblackstone/undefined-scheme branch July 19, 2023 23:50
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.

apiregistration.k8s.io missing scheme
3 participants