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 singleton list example conversion if there's no annotation #410

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

ulucinar
Copy link
Collaborator

Description of your changes

If the example manifest being converted with a singleton list has no annotations set, the converter currently panics. This PR proposes to initialize with an empty map to gracefully handle these cases and also logs the problematic manifests so that the missing meta.upbound.io/example-id can be added.

I have:

  • Read and followed Upjet's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested against crossplane-contrib/provider-upjet-aws#1332.

… list

does not have any annotations set.

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
…nversion fails

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar ulucinar merged commit 6c305d0 into crossplane:main Jun 7, 2024
6 checks passed
@ulucinar ulucinar deleted the fix-ex-conv branch June 7, 2024 09:29
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.

2 participants