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

feat: support kill command #3034

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

cxz66666
Copy link
Collaborator

@cxz66666 cxz66666 commented Jul 11, 2022

In fact, we consider carefully about add a kill command for pouch, and finally we think it's a good idea, because much time when we want to stop a container immediately, we can use kill command instead of stop command(which have default timeout 10s).
On the other hand, docker already support kill command!

Ⅰ. Describe what this PR did

Add kill command to pouch.

Ⅱ. Does this pull request fix one issue?

fixes #2917
similar as #2924 (but server design is much different)

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

Add unit test and integration test

Ⅳ. Describe how to verify it

just use pouch kill --help to see the helper!

Ⅴ. Special notes for reviews

Note that maybe it also need update some docs about this new command, I already use pouch gen-doc to update it and update swagger.yml manually, but I don't know how to update docs/api/HTTP_API.md and api/types(maybe also need update other files), anyone can point out it ? 😢

@CLAassistant
Copy link

CLAassistant commented Jul 11, 2022

CLA assistant check
All committers have signed the CLA.

In fact, we consider carefully about add a kill command for pouch, and finally we think it's a good idea, because much time when we want to stop a container immediately, we can use kill command instead of stop command(which have default timeout 10s).
On the other hand, docker already support kill command!
@rudyfly rudyfly merged commit 080b9e0 into AliyunContainerService:master Jul 20, 2022
@rudyfly
Copy link
Collaborator

rudyfly commented Jul 20, 2022

LGTM

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.

[feature] pouch cli supports kill function
3 participants