Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Conversion: Default to string as element type #199

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

turkenh
Copy link
Member

@turkenh turkenh commented Jan 14, 2022

Description of your changes

There could be some collection types which do not set types of their elements explicitly and we found out assuming String in that case is the right way to go. We have implemented this in type builder but didn't follow same in conversion for resources using v1 sdk.

This PR fixes the same issue in conversion package.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

With provider rancher which uses v1 sdk.

Signed-off-by: Hasan Turken <turkenh@gmail.com>
@turkenh turkenh requested review from muvaf and ulucinar January 14, 2022 23:03
turkenh added a commit to turkenh/provider-jet-rancher that referenced this pull request Jan 14, 2022
Signed-off-by: Hasan Turken <turkenh@gmail.com>
Copy link
Collaborator

@ulucinar ulucinar left a comment

Choose a reason for hiding this comment

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

Thanks @turkenh. Have we yet actually encountered this panic somewhere?

@turkenh
Copy link
Member Author

turkenh commented Jan 18, 2022

Thanks @turkenh. Have we yet actually encountered this panic somewhere?

Yes, @ytsarev reported this with https://github.com/AbsaOSS/provider-jet-rancher

@turkenh turkenh merged commit 66c9701 into crossplane:main Jan 18, 2022
@turkenh turkenh deleted the conversion-default-to-type-string branch January 18, 2022 11:01
@ulucinar
Copy link
Collaborator

Thanks for linking the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants