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

Add a nil case to the getValueFromInterface function #666

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

sergenyalcin
Copy link
Member

Description of your changes

This PR adds a nil case to the getValueFromInterface function to handle the case that the value of the segment is nil. This issue was observed while testing the conversion functions in provider-aws.

This PR addresses the same issue as here, but for a different function.

I have:

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

How has this code been tested

Tested locally for the observed case.

Copy link
Contributor

@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 @sergenyalcin, lgtm.

pkg/fieldpath/paved.go Outdated Show resolved Hide resolved
pkg/fieldpath/paved_test.go Outdated Show resolved Hide resolved
pkg/fieldpath/paved_test.go Outdated Show resolved Hide resolved
Signed-off-by: Sergen Yalçın <[email protected]>
pkg/fieldpath/paved.go Outdated Show resolved Hide resolved
Copy link
Member

@turkenh turkenh left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@phisco phisco merged commit 7fcb8c5 into crossplane:master Feb 13, 2024
9 checks passed
@haarchri
Copy link
Contributor

any reason why this PR is not with label for backport to v1.15 release ? - looks like we started using 1.16 rc for providers https://github.com/upbound/provider-aws/blob/main/go.mod#L13 after crossplane-contrib/provider-upjet-aws#1159

@lsviben
Copy link
Contributor

lsviben commented Feb 21, 2024

any reason why this PR is not with label for backport to v1.15 release ? - looks like we started using 1.16 rc for providers https://github.com/upbound/provider-aws/blob/main/go.mod#L13 after crossplane-contrib/provider-upjet-aws#1159

Lets backport it. If the providers need it better that they use v1.15.x then the rc for v1.16

Copy link

Successfully created backport PR for release-1.15:

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

Successfully merging this pull request may close these issues.

6 participants