Skip to content

Add a nil case to the getValueFromInterface function#666

Merged
phisco merged 3 commits intocrossplane:masterfrom
sergenyalcin:handle-nil-case
Feb 13, 2024
Merged

Add a nil case to the getValueFromInterface function#666
phisco merged 3 commits intocrossplane:masterfrom
sergenyalcin:handle-nil-case

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.

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
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.

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
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!

Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
@haarchri
Copy link
Member

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

@github-actions
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