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

Fix resource kind lookup using URN.Type instead of QualifiedType #2719

Merged
merged 5 commits into from
Dec 14, 2023

Conversation

rquitales
Copy link
Contributor

@rquitales rquitales commented Dec 14, 2023

Proposed changes

This pull request uses the URN Type method, rather than QualifiedType to search if resources are a patch or list resource. Qualified types include the parent resource if there is one, so it would have failed the lookup.

Additionally, comprehensive unit tests have been included to validate this change.

Related issues (optional)

Fixes: #2718 (manual validation was done to ensure this fix solves this CUJ)

@rquitales rquitales requested review from EronWright and a team December 14, 2023 21:23
Copy link

Does the PR have any schema changes?

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

provider/pkg/kinds/util.go Outdated Show resolved Hide resolved
@rquitales rquitales changed the title Enhance Kind lookup with suffix search for improved URN matching Fix resource kind lookup using URN.Type instead of QualifiedType Dec 14, 2023
@rquitales rquitales enabled auto-merge (squash) December 14, 2023 22:58
@rquitales rquitales merged commit 4f5cc80 into master Dec 14, 2023
18 checks passed
@rquitales rquitales deleted the rquitales/fix-child-patch-rsc branch December 14, 2023 23:59
@rquitales rquitales restored the rquitales/fix-child-patch-rsc branch December 15, 2023 18:33
@rquitales rquitales deleted the rquitales/fix-child-patch-rsc branch December 15, 2023 18:34
rquitales added a commit that referenced this pull request Dec 15, 2023
This pull request uses the URN`Type` method, rather than `QualifiedType`
to search if resources are a patch or list resource. Qualified types
include the parent resource if there is one, so it would have failed the
lookup.

Additionally, comprehensive unit tests have been included to validate
this change.

Fixes: #2718 (manual validation was done to ensure this fix solves this
CUJ)
rquitales added a commit that referenced this pull request Dec 15, 2023
This pull request uses the URN`Type` method, rather than `QualifiedType`
to search if resources are a patch or list resource. Qualified types
include the parent resource if there is one, so it would have failed the
lookup.

Additionally, comprehensive unit tests have been included to validate
this change.

Fixes: #2718 (manual validation was done to ensure this fix solves this
CUJ)
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.

DaemonSetPatch taking ownership of fields unexpectedly upon an update operation with a parent set.
2 participants