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

bugfix: fix stdin hang when kubectl exec #2044

Merged
merged 1 commit into from
Aug 3, 2018

Conversation

YaoZengzeng
Copy link
Contributor

Signed-off-by: YaoZengzeng yaozengzeng@zju.edu.cn

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@pouchrobot pouchrobot added kind/bug This is bug report for project size/XS labels Aug 2, 2018
@@ -53,6 +53,7 @@ func (s *streamRuntime) Exec(ctx context.Context, containerID string, cmd []stri
}

attachConfig := &mgr.AttachConfig{
Stdin: streamOpts.Stdin,
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add test case to lock this error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we should make an issue for cri-tools to make the test more complete.

Copy link
Contributor

Choose a reason for hiding this comment

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

look good to me

Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
@allencloud
Copy link
Collaborator

LGTM

@allencloud allencloud merged commit 952edf1 into AliyunContainerService:master Aug 3, 2018
@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Aug 3, 2018
@codecov-io
Copy link

codecov-io commented Aug 3, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@bec3c7e). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2044   +/-   ##
=========================================
  Coverage          ?   63.84%           
=========================================
  Files             ?      201           
  Lines             ?    15528           
  Branches          ?        0           
=========================================
  Hits              ?     9914           
  Misses            ?     4381           
  Partials          ?     1233
Flag Coverage Δ
#criv1alpha1test 33.73% <100%> (?)
#criv1alpha2test 34.22% <100%> (?)
#integrationtest 38.49% <0%> (?)
#unittest 22.78% <0%> (?)
Impacted Files Coverage Δ
cri/stream/runtime.go 71.42% <100%> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is bug report for project LGTM one maintainer or community participant agrees to merge the pull reuqest. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants