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

Always use p.GetType(), not p.Type #77

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Conversation

negz
Copy link
Member

@negz negz commented Jan 9, 2024

Fixes #74

GetType returns a default value if p.Type is empty. In upstream c/c CRD defaulting does this for us, but we can't rely on that here since our input is not a 'real' API object.

GetType returns a default value if p.Type is empty. In upstream c/c CRD
defaulting does this for us, but we can't rely on that here since our
input is not a 'real' API object.

Signed-off-by: Nic Cope <[email protected]>
@negz negz requested a review from phisco January 9, 2024 01:58
@phisco phisco merged commit 11be501 into crossplane-contrib:main Jan 9, 2024
6 checks passed
@negz negz deleted the typical branch January 9, 2024 17:59
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.

Patches without type are ignored
2 participants