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

Plumb up reconciler contexts #298

Merged
merged 1 commit into from
Oct 14, 2021
Merged

Plumb up reconciler contexts #298

merged 1 commit into from
Oct 14, 2021

Conversation

negz
Copy link
Member

@negz negz commented Oct 14, 2021

Description of your changes

I believe the Reconcile method started including a context in controller-runtime v0.8.0, but it was never plumbed up. If I follow the contexts correctly the one passed to Reconcile can be traced back to the one passed to mgr.Start, which is typically a context that is cancelled on SIGTERM or SIGINT.

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

I haven't manually tested this - we plumb the context in this fashion in our core reconcilers in crossplane/crossplane, so I expect the change to be low risk.

I believe the Reconcile method started including a context in controller-runtime
v0.8.0, but it was never plumbed up. If I follow the contexts correctly the one
passed to Reconcile can be traced back to the one passed to mgr.Start, which is
typically a context that is cancelled on SIGTERM or SIGINT.

Signed-off-by: Nic Cope <negz@rk0n.org>
Copy link
Member

@hasheddan hasheddan left a comment

Choose a reason for hiding this comment

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

Thanks @negz!

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