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

api: pass configured timeouts to plugins. #109

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

klihub
Copy link
Member

@klihub klihub commented Sep 20, 2024

Pass configured registration and request timeouts to plugins in the Configure request.

@klihub
Copy link
Member Author

klihub commented Sep 20, 2024

/cc @zhaodiaoer

@klihub
Copy link
Member Author

klihub commented Sep 20, 2024

/cc @kad

@klihub klihub force-pushed the devel/pass-timeouts-to-plugins branch 3 times, most recently from 4661a25 to 1b879ca Compare September 20, 2024 14:30
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@zhaodiaoer
Copy link
Contributor

/cc @zhaodiaoer

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.

@klihub klihub force-pushed the devel/pass-timeouts-to-plugins branch 2 times, most recently from 3178104 to 37b9262 Compare September 25, 2024 08:03
Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM

@klihub klihub force-pushed the devel/pass-timeouts-to-plugins branch 3 times, most recently from 111292b to 3b04b20 Compare September 25, 2024 14:56
@mikebrow mikebrow marked this pull request as draft September 25, 2024 18:50
@klihub klihub force-pushed the devel/pass-timeouts-to-plugins branch 5 times, most recently from 24d6c98 to 147ff6a Compare September 26, 2024 07:40
@mikebrow mikebrow marked this pull request as ready for review September 26, 2024 13:15
Copy link
Member

@mikebrow mikebrow left a 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]>
@klihub klihub force-pushed the devel/pass-timeouts-to-plugins branch 2 times, most recently from 343f59a to 6c5f46a Compare September 27, 2024 12:11
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]>
@klihub klihub force-pushed the devel/pass-timeouts-to-plugins branch from 6c5f46a to 320e4e7 Compare September 27, 2024 12:28
@klihub
Copy link
Member Author

klihub commented Oct 7, 2024

@fuweid PTAL

@dmcgowan dmcgowan merged commit 43b5c7f into containerd:main Oct 10, 2024
8 checks passed
@klihub klihub deleted the devel/pass-timeouts-to-plugins branch October 10, 2024 07:52
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.

5 participants