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
Remove definitly all remaining usage of context.TODO() #8701
Comments
This commit adds context parameter to utilities in opcontroller to remove context.TODO use in opcontroller. By this, we can handle cancellation cancellation of reconcilers in a fine-grained way. Part of rook#8701. Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
This commit adds context parameter to utilities in opcontroller to remove context.TODO use in opcontroller. By this, we can handle cancellation cancellation of reconcilers in a fine-grained way. Part of rook#8701. Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
This commit adds context parameter to utilities in opcontroller to remove context.TODO use in opcontroller. By this, we can handle cancellation of reconcilers in a fine-grained way. Part of rook#8701. Signed-off-by: Yuichiro Ueno <y1r.ueno@gmail.com>
@y1r are you planning on finishing this work? Thanks and appreciate your initial contribution. |
@leseb Yes! I want to try this issue. It seems to be a good chance to learn Rook codebase. |
Closed in #9023 |
We still have some. |
I would like to take this up, if it's not been worked upon by someone else. |
@weirdwiz it's all yours now. |
This commit adds context parameter to the updateDeviceCM() function and other top level calling functions. This will allow us to handle cancellations while talking to the k8s API. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit removes the usage of context.TODO while creating ClusterInfo to access the cluster as an admin. This commit also adds the context parameter to the functions calling AdminClusterInfo to pass down the context. This will allow us to handle cancellation of all the methods being using the context from ClusterInfo. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to function ExecCommandInContainerWithFullOutPut(). The context parameter is used while getting the list of pods. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit removes context.TODO and adds context parameter to transfer the context down from calling functions. This commit also renames contex, of type ClusterdContext, to clusterdContext in kms_test.go, due to conflicts in naming while adding context.Context parameter to vaultClient function in the tests. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to the updateDeviceCM() function and other top level calling functions. This will allow us to handle cancellations while talking to the k8s API. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit removes the usage of context.TODO while creating ClusterInfo to access the cluster as an admin. This commit also adds the context parameter to the functions calling AdminClusterInfo to pass down the context. This will allow us to handle cancellation of all the methods being using the context from ClusterInfo. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to function ExecCommandInContainerWithFullOutPut(). The context parameter is used while getting the list of pods. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit removes context.TODO and adds context parameter to transfer the context down from calling functions. This commit also renames contex, of type ClusterdContext, to clusterdContext in kms_test.go, due to conflicts in naming while adding context.Context parameter to vaultClient function in the tests. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to various functions, and remove the usage of context.TODO. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to various functions, and remove the usage of context.TODO. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to various functions, and remove the usage of context.TODO. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to various functions, and remove the usage of context.TODO. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to various functions, and remove the usage of context.TODO. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This commit adds context parameter to various functions, and remove the usage of context.TODO. Closes: rook#8701 Signed-off-by: Divyansh Kamboj <dkamboj@redhat.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
This is a follow-up from #8607. Each function using
context.TODO()
internally must instead ask for a context. Top-level callers now have acontext.Context
available so let's use it.This excludes the
tests
package directory for now.The text was updated successfully, but these errors were encountered: