-
Notifications
You must be signed in to change notification settings - Fork 58
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
controller: reuse the context from reconcile #385
Conversation
/assign @iamniting |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Madhu-1 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@iamniting where i can find details about the test failure? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we save the context to the recociler func and use it from there. I will save us from passing ctx here and there if the func is on top of reconciler struct.
sorry didn't get the suggestion, Do you mean saving as a global variable? if yes, i would not do it as its against the practice. main goal is that we should not create context when reconciling instead we should use the context created for the |
got it now, let me take that in to consideration and do it |
We dont need to create a new context for each time for a reconcile we should use the ctx from the Reconcile for all the dependent operations. Signed-off-by: Madhu Rajanna <[email protected]>
If the CSV is in Failed state, log/return the complete status field which helps in understanding what went wrong. Signed-off-by: Madhu Rajanna <[email protected]>
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@Madhu-1: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
We dont need to create a new context for each time for a reconcile we should use the ctx from the Reconcile for all the dependent operations.