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

Ignore fields in glue.Crawler and lambda.Function that block code-generator bump #992

Merged
merged 3 commits into from
Dec 7, 2021

Conversation

muvaf
Copy link
Member

@muvaf muvaf commented Dec 7, 2021

Description of your changes

Due to aws-controllers-k8s/community#1078 , we cannot use the code generated to set these fields. To unblock code-generator upgrade, we can ignore them so that their getter/setter logic is not generated and handwritten by us in setup.go

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

…itten code

Signed-off-by: Muvaffak Onus <me@muvaf.com>
…dwritten code

Signed-off-by: Muvaffak Onus <me@muvaf.com>
if err != nil {
return managed.ExternalObservation{}, err
}
cr.SetConditions(xpv1.Available())
return obs, nil
}

func postCreate(_ context.Context, cr *svcapitypes.Crawler, obj *svcsdk.CreateCrawlerOutput, _ managed.ExternalCreation, err error) (managed.ExternalCreation, error) {
Copy link
Member Author

Choose a reason for hiding this comment

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

External name feature implementation wasn't correct so I fixed that as well - we can never use cr.Name, the source of truth is always the annotation.

Signed-off-by: Muvaffak Onus <me@muvaf.com>
@AaronME
Copy link
Collaborator

AaronME commented Dec 7, 2021

Thanks, @muvaf !

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.

None yet

2 participants