-
Notifications
You must be signed in to change notification settings - Fork 64
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
api: pass configured timeouts to plugins. #109
api: pass configured timeouts to plugins. #109
Conversation
/cc @zhaodiaoer |
/cc @kad |
4661a25
to
1b879ca
Compare
LGTM This is exactly what we need. The plugin owner can use these configurations more conveniently to adjust the context of the internal logic. Thanks. |
3178104
to
37b9262
Compare
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.
LGTM
111292b
to
3b04b20
Compare
24d6c98
to
147ff6a
Compare
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.
still LGTM
Add a mechanism to block and unblock plugin synchronization. We use this first in our tests to ensure that test plugins get properly synchronized either before or after we create a pod or a container, but not halfway through it. We should also do the same in the corresponding paths of the NRI runtime integration core where otherwise processing NRI events concurrent to plugin registration could result in an inconsistent initial state of a new plugin (missing pods or containers during sync, or omitted event for the plugin). Signed-off-by: Krisztian Litkey <[email protected]>
Block plugin sync/registration in mocked test suite runtime. Signed-off-by: Krisztian Litkey <[email protected]>
Don't ignore ginkgo test run exit status. Signed-off-by: Krisztian Litkey <[email protected]>
343f59a
to
6c5f46a
Compare
Let plugins know the configured registration and request processing timeout. Signed-off-by: Krisztian Litkey <[email protected]>
Add tests for passing runtime version and configured timeouts to plugins. Signed-off-by: Krisztian Litkey <[email protected]>
6c5f46a
to
320e4e7
Compare
@fuweid PTAL |
Pass configured registration and request timeouts to plugins in the
Configure
request.