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: Readd empty initializers after runtime update #1942

Merged

Conversation

MisterMX
Copy link
Collaborator

@MisterMX MisterMX commented Nov 9, 2023

Description of your changes

The default behaviour of a controller is to use
managed.NewNameWithExternalName. Controllers need to pass managed.WithInitializers() to change the behaviour.

After the runtime upgrade and tagging removal, some of the empty managed.WithInitializers() got removed resulting in a different behaviour.

Readd them restore the previous behaviour.

Partially reverts #1935.

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

No, testing was performed. Just comparison to the previous version.

@MisterMX MisterMX requested a review from chlunde November 9, 2023 15:58
@MisterMX MisterMX force-pushed the fix/runtime-upgrade-initializers branch from 2b3dfca to 4bf35a1 Compare November 9, 2023 16:20
@chlunde
Copy link
Collaborator

chlunde commented Nov 9, 2023

I think this CI will be green if rebased?

The default behaviour of a controller is to use
`managed.NewNameWithExternalName`. Controllers need to pass
`managed.WithInitializers()` to change the behaviour.

After the runtime upgrade and tagging removal, some of the empty
`managed.WithInitializers()` got removed resulting in a different
behaviour.

Readd them restore the previous behaviour.

Signed-off-by: Maximilian Blatt (external expert on behalf of DB Netz) <maximilian.blatt-extern@deutschebahn.com>
@MisterMX MisterMX force-pushed the fix/runtime-upgrade-initializers branch from 4bf35a1 to 0ddc4ec Compare November 10, 2023 09:31
@MisterMX MisterMX merged commit 5164732 into crossplane-contrib:master Nov 10, 2023
9 checks passed
@MisterMX MisterMX deleted the fix/runtime-upgrade-initializers branch November 10, 2023 09:55
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