Skip to content

Commit

Permalink
cri/server: use consistent alias for pkg/ioutil
Browse files Browse the repository at this point in the history
Consistently use cioutil to prevent it being confused for Golang's ioutil.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Dec 9, 2021
1 parent a04656c commit 2d30090
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cri/server/sandbox_portforward_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ import (
"k8s.io/utils/exec"

sandboxstore "github.com/containerd/containerd/pkg/cri/store/sandbox"
"github.com/containerd/containerd/pkg/ioutil"
cioutil "github.com/containerd/containerd/pkg/ioutil"
)

func (c *criService) portForward(ctx context.Context, id string, port int32, stream io.ReadWriter) error {
stdout := ioutil.NewNopWriteCloser(stream)
stdout := cioutil.NewNopWriteCloser(stream)
stderrBuffer := new(bytes.Buffer)
stderr := ioutil.NewNopWriteCloser(stderrBuffer)
stderr := cioutil.NewNopWriteCloser(stderrBuffer)
// localhost is resolved to 127.0.0.1 in ipv4, and ::1 in ipv6.
// Explicitly using ipv4 IP address in here to avoid flakiness.
cmd := []string{"wincat.exe", "127.0.0.1", fmt.Sprint(port)}
Expand Down

0 comments on commit 2d30090

Please sign in to comment.