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 Status.AtProvider not being updated on elbv2 types #1376

Merged

Conversation

EdgeJ
Copy link
Contributor

@EdgeJ EdgeJ commented Jul 1, 2022

Description of your changes

The Status.AtProvider fields were not being correctly updated, mostly due to inconsistencies with the way the Create* operations work. All Create options for elbv2 types return a slice of types. Without adding options to specify the output path needed, the code generator sets up the status object as an array of sdk types. Since these types don't map to any of the describe types, the generator skips adding logic to copy them into the atProvider field. The changes here are mainly just adding options to the code generator config to force the generation to do the right thing.

Fixes #1309

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

Example yaml configurations were applied and verified that status fields are being filled in.
[contribution process]: https://git.io/fj2m9

EdgeJ added 3 commits July 1, 2022 12:55
Fixes issues with the code generator not being able to find the
applicable fields in Status.AtProvider and therefore not correctly
generating the code to apply the status to the finalized CRD.

Signed-off-by: EdgeJ <5093048+EdgeJ@users.noreply.github.com>
Signed-off-by: EdgeJ <5093048+EdgeJ@users.noreply.github.com>
Signed-off-by: EdgeJ <5093048+EdgeJ@users.noreply.github.com>
@EdgeJ EdgeJ mentioned this pull request Jul 1, 2022
2 tasks
Copy link
Member

@haarchri haarchri left a comment

Choose a reason for hiding this comment

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

LGTM - added breaking-change because of the change in atProvider - that we can add a Release Note that we change the atProvider Status Object

@haarchri haarchri merged commit 4c51b71 into crossplane-contrib:master Jul 5, 2022
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.

Empty atProvider for loadBalancer
2 participants