Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8b1174a3
Commit
8b1174a3
authored
May 07, 2015
by
Yifan Gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubelet/container: Move pty*.go to container runtime package.
This makes the labeld pty wrapper available for both container runtime.
parent
12de230b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
pty_linux.go
pkg/kubelet/container/pty_linux.go
+1
-1
pty_unsupported.go
pkg/kubelet/container/pty_unsupported.go
+1
-1
manager.go
pkg/kubelet/dockertools/manager.go
+1
-1
rkt.go
pkg/kubelet/rkt/rkt.go
+1
-3
No files found.
pkg/kubelet/
dockertools
/pty_linux.go
→
pkg/kubelet/
container
/pty_linux.go
View file @
8b1174a3
...
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
...
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
dockertools
package
container
import
(
import
(
"os"
"os"
...
...
pkg/kubelet/
dockertools
/pty_unsupported.go
→
pkg/kubelet/
container
/pty_unsupported.go
View file @
8b1174a3
...
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
...
@@ -16,7 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
dockertools
package
container
import
(
import
(
"os"
"os"
...
...
pkg/kubelet/dockertools/manager.go
View file @
8b1174a3
...
@@ -929,7 +929,7 @@ func (dm *DockerManager) ExecInContainer(containerId string, cmd []string, stdin
...
@@ -929,7 +929,7 @@ func (dm *DockerManager) ExecInContainer(containerId string, cmd []string, stdin
args
=
append
(
args
,
cmd
...
)
args
=
append
(
args
,
cmd
...
)
command
:=
exec
.
Command
(
nsenter
,
args
...
)
command
:=
exec
.
Command
(
nsenter
,
args
...
)
if
tty
{
if
tty
{
p
,
err
:=
StartPty
(
command
)
p
,
err
:=
kubecontainer
.
StartPty
(
command
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
pkg/kubelet/rkt/rkt.go
View file @
8b1174a3
...
@@ -47,7 +47,6 @@ import (
...
@@ -47,7 +47,6 @@ import (
"github.com/docker/docker/pkg/parsers"
"github.com/docker/docker/pkg/parsers"
docker
"github.com/fsouza/go-dockerclient"
docker
"github.com/fsouza/go-dockerclient"
"github.com/golang/glog"
"github.com/golang/glog"
"github.com/kr/pty"
)
)
const
(
const
(
...
@@ -928,8 +927,7 @@ func (r *runtime) ExecInContainer(containerID string, cmd []string, stdin io.Rea
...
@@ -928,8 +927,7 @@ func (r *runtime) ExecInContainer(containerID string, cmd []string, stdin io.Rea
command
:=
r
.
buildCommand
(
args
...
)
command
:=
r
.
buildCommand
(
args
...
)
if
tty
{
if
tty
{
// TODO(yifan): Merge with dockertools.StartPty().
p
,
err
:=
kubecontainer
.
StartPty
(
command
)
p
,
err
:=
pty
.
Start
(
command
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment