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

Queue a reconcile request after marking the resource as ready #262

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Aug 22, 2023

Description of your changes

With this PR, right after marking a managed resource as ready (adding the Ready=True status condition), we queue a reconcile request because the status updates will no longer trigger a reconciliation and there may be a need for a subsequent reconcile for late-initialization. Currently, we need to wait for the poll interval after marking a resource as ready before it's late-initialized as we prioritize marking a resource as ready over late-initializing it unlike the community providers (this is at least the case for the community AWS provider).

We are also planning to change this behavior and simplify the logic implemented here in a future PR.

I have:

  • Read and followed Crossplane'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

Please see the comment below.

@ulucinar ulucinar force-pushed the queue-after-ready branch 4 times, most recently from a906dc9 to 2f18c26 Compare August 23, 2023 08:09
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.

I tested this PR against to the provider-gcp and I validated a reconciliation is requested after making the resource as ready.

Thanks @ulucinar LGTM.

@ulucinar
Copy link
Collaborator Author

Thank you @sergenyalcin!

@ulucinar ulucinar merged commit a5cc50f into crossplane:main Aug 23, 2023
4 checks passed
@ulucinar ulucinar deleted the queue-after-ready branch August 23, 2023 08:41
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