From 786e993338f50a0fd0d586a25ea60d1a810ee51d Mon Sep 17 00:00:00 2001 From: Lee Verberne Date: Fri, 5 May 2017 22:52:46 +0000 Subject: [PATCH] Fix typo in ExecCommandParam --- pkg/api/types.go | 2 +- pkg/client/tests/remotecommand_test.go | 2 +- pkg/kubelet/server/server.go | 2 +- staging/src/k8s.io/api/core/v1/types.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/api/types.go b/pkg/api/types.go index fefabceaa8a..e7aea27e8e1 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -3852,7 +3852,7 @@ const ( // Enable TTY for remote command execution ExecTTYParam = "tty" // Command to run for remote command execution - ExecCommandParamm = "command" + ExecCommandParam = "command" // Name of header that specifies stream type StreamType = "streamType" diff --git a/pkg/client/tests/remotecommand_test.go b/pkg/client/tests/remotecommand_test.go index 7c2a0e816fc..6ea8a96ecb1 100644 --- a/pkg/client/tests/remotecommand_test.go +++ b/pkg/client/tests/remotecommand_test.go @@ -125,7 +125,7 @@ func fakeServer(t *testing.T, testName string, exec bool, stdinData, stdoutData, opts, err := remotecommand.NewOptions(req) require.NoError(t, err) if exec { - cmd := req.URL.Query()[api.ExecCommandParamm] + cmd := req.URL.Query()[api.ExecCommandParam] remotecommand.ServeExec(w, req, executor, "pod", "uid", "container", cmd, opts, 0, 10*time.Second, serverProtocols) } else { remotecommand.ServeAttach(w, req, executor, "pod", "uid", "container", opts, 0, 10*time.Second, serverProtocols) diff --git a/pkg/kubelet/server/server.go b/pkg/kubelet/server/server.go index 63e0f11ee79..b9f33a967f9 100644 --- a/pkg/kubelet/server/server.go +++ b/pkg/kubelet/server/server.go @@ -593,7 +593,7 @@ func getExecRequestParams(req *restful.Request) execRequestParams { podName: req.PathParameter("podID"), podUID: types.UID(req.PathParameter("uid")), containerName: req.PathParameter("containerName"), - cmd: req.Request.URL.Query()[api.ExecCommandParamm], + cmd: req.Request.URL.Query()[api.ExecCommandParam], } } diff --git a/staging/src/k8s.io/api/core/v1/types.go b/staging/src/k8s.io/api/core/v1/types.go index 33774e0d8d0..4e0bdb3b486 100644 --- a/staging/src/k8s.io/api/core/v1/types.go +++ b/staging/src/k8s.io/api/core/v1/types.go @@ -4606,7 +4606,7 @@ const ( // Enable TTY for remote command execution ExecTTYParam = "tty" // Command to run for remote command execution - ExecCommandParamm = "command" + ExecCommandParam = "command" // Name of header that specifies stream type StreamType = "streamType"