From 95c232ee0793c959040e8c1f7a1dddd4829b2845 Mon Sep 17 00:00:00 2001 From: ruicao Date: Tue, 12 Jun 2018 23:12:39 +0800 Subject: [PATCH] Typo fix: toto -> to --- CHANGELOG-1.4.md | 2 +- cmd/kubelet/app/options/options.go | 2 +- hack/lib/util.sh | 2 +- pkg/kubectl/cmd/create/create_job_test.go | 2 +- pkg/kubelet/logs/container_log_manager.go | 2 +- pkg/volume/util/operationexecutor/operation_executor.go | 2 +- pkg/volume/util/util.go | 2 +- test/e2e/kubectl/kubectl.go | 4 ++-- test/e2e/storage/pd.go | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG-1.4.md b/CHANGELOG-1.4.md index 96d2c7fbfa..6af85de7b5 100644 --- a/CHANGELOG-1.4.md +++ b/CHANGELOG-1.4.md @@ -1187,7 +1187,7 @@ binary | sha256 hash * The implicit registration of Prometheus metrics for request count and latency have been removed, and a plug-able interface was added. If you were using our client libraries in your own binaries and want these metrics, add the following to your imports in the main package: "k8s.io/pkg/client/metrics/prometheus". ([#30638](https://github.com/kubernetes/kubernetes/pull/30638), [@krousey](https://github.com/krousey)) * Add support for --image-pull-policy to 'kubectl run' ([#30614](https://github.com/kubernetes/kubernetes/pull/30614), [@AdoHe](https://github.com/AdoHe)) * x509 authenticator: get groups from subject's organization field ([#30392](https://github.com/kubernetes/kubernetes/pull/30392), [@ericchiang](https://github.com/ericchiang)) -* Add initial support for TokenFile to to the client config file. ([#29696](https://github.com/kubernetes/kubernetes/pull/29696), [@brendandburns](https://github.com/brendandburns)) +* Add initial support for TokenFile to the client config file. ([#29696](https://github.com/kubernetes/kubernetes/pull/29696), [@brendandburns](https://github.com/brendandburns)) * update kubectl help output for better organization ([#25524](https://github.com/kubernetes/kubernetes/pull/25524), [@AdoHe](https://github.com/AdoHe)) * daemonset controller should respect taints ([#31020](https://github.com/kubernetes/kubernetes/pull/31020), [@mikedanese](https://github.com/mikedanese)) * Implement TLS bootstrap for kubelet using `--experimental-bootstrap-kubeconfig` (2nd take) ([#30922](https://github.com/kubernetes/kubernetes/pull/30922), [@yifan-gu](https://github.com/yifan-gu)) diff --git a/cmd/kubelet/app/options/options.go b/cmd/kubelet/app/options/options.go index 048637bdac..0058c0bda2 100644 --- a/cmd/kubelet/app/options/options.go +++ b/cmd/kubelet/app/options/options.go @@ -395,7 +395,7 @@ func (f *KubeletFlags) AddFlags(mainfs *pflag.FlagSet) { fs.StringVar(&f.LockFilePath, "lock-file", f.LockFilePath, " The path to file for kubelet to use as a lock file.") fs.BoolVar(&f.ExitOnLockContention, "exit-on-lock-contention", f.ExitOnLockContention, "Whether kubelet should exit upon lock-file contention.") fs.StringVar(&f.SeccompProfileRoot, "seccomp-profile-root", f.SeccompProfileRoot, " Directory path for seccomp profiles.") - fs.StringVar(&f.BootstrapCheckpointPath, "bootstrap-checkpoint-path", f.BootstrapCheckpointPath, " Path to to the directory where the checkpoints are stored") + fs.StringVar(&f.BootstrapCheckpointPath, "bootstrap-checkpoint-path", f.BootstrapCheckpointPath, " Path to the directory where the checkpoints are stored") fs.Int32Var(&f.NodeStatusMaxImages, "node-status-max-images", f.NodeStatusMaxImages, " The maximum number of images to report in Node.Status.Images. If -1 is specified, no cap will be applied. Default: 50") // DEPRECATED FLAGS diff --git a/hack/lib/util.sh b/hack/lib/util.sh index 950518b08c..7fec453f0e 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -308,7 +308,7 @@ kube::util::gv-to-swagger-name() { # Assumed vars: # SWAGGER_API_PATH: Base path for swaggerapi on apiserver. Ex: # http://localhost:8080/swaggerapi. -# SWAGGER_ROOT_DIR: Root dir where we want to to save the fetched spec. +# SWAGGER_ROOT_DIR: Root dir where we want to save the fetched spec. # VERSIONS: Array of group versions to include in swagger spec. kube::util::fetch-swagger-spec() { for ver in ${VERSIONS}; do diff --git a/pkg/kubectl/cmd/create/create_job_test.go b/pkg/kubectl/cmd/create/create_job_test.go index 7aa14cc9f3..d21249495f 100644 --- a/pkg/kubectl/cmd/create/create_job_test.go +++ b/pkg/kubectl/cmd/create/create_job_test.go @@ -125,7 +125,7 @@ func TestCreateJobFromCronJob(t *testing.T) { t.Errorf("expected length of labels array to be 1, got %d", l) } if v, ok := submittedJob.Labels["test-label"]; !ok || v != "test-value" { - t.Errorf("expected label test-label=test-value to to exist, got '%s'", v) + t.Errorf("expected label test-label=test-value to exist, got '%s'", v) } if l := len(submittedJob.Spec.Template.Spec.Containers); l != 1 { diff --git a/pkg/kubelet/logs/container_log_manager.go b/pkg/kubelet/logs/container_log_manager.go index 12ba95bd76..cae78993d1 100644 --- a/pkg/kubelet/logs/container_log_manager.go +++ b/pkg/kubelet/logs/container_log_manager.go @@ -205,7 +205,7 @@ func (c *containerLogManager) rotateLogs() error { } // In rotateLatestLog, there are several cases that we may // lose original container log after ReopenContainerLog fails. - // We try to to recover it by reopening container log. + // We try to recover it by reopening container log. if err := c.runtimeService.ReopenContainerLog(id); err != nil { glog.Errorf("Container %q log %q doesn't exist, reopen container log failed: %v", id, path, err) continue diff --git a/pkg/volume/util/operationexecutor/operation_executor.go b/pkg/volume/util/operationexecutor/operation_executor.go index 283a322259..1a44c62d4a 100644 --- a/pkg/volume/util/operationexecutor/operation_executor.go +++ b/pkg/volume/util/operationexecutor/operation_executor.go @@ -248,7 +248,7 @@ func generateVolumeMsg(prefixMsg, suffixMsg, volumeName, details string) (simple // VolumeToAttach represents a volume that should be attached to a node. type VolumeToAttach struct { // MultiAttachErrorReported indicates whether the multi-attach error has been reported for the given volume. - // It is used to to prevent reporting the error from being reported more than once for a given volume. + // It is used to prevent reporting the error from being reported more than once for a given volume. MultiAttachErrorReported bool // VolumeName is the unique identifier for the volume that should be diff --git a/pkg/volume/util/util.go b/pkg/volume/util/util.go index 1e7b709340..c62d83f11c 100644 --- a/pkg/volume/util/util.go +++ b/pkg/volume/util/util.go @@ -322,7 +322,7 @@ func LabelZonesToSet(labelZonesValue string) (sets.String, error) { return stringToSet(labelZonesValue, kubeletapis.LabelMultiZoneDelimiter) } -// StringToSet converts a string containing list separated by specified delimiter to to a set +// StringToSet converts a string containing list separated by specified delimiter to a set func stringToSet(str, delimiter string) (sets.String, error) { zonesSlice := strings.Split(str, delimiter) zonesSet := make(sets.String) diff --git a/test/e2e/kubectl/kubectl.go b/test/e2e/kubectl/kubectl.go index 3132d2c11a..f2c817d3a5 100644 --- a/test/e2e/kubectl/kubectl.go +++ b/test/e2e/kubectl/kubectl.go @@ -2117,12 +2117,12 @@ func streamingUpload(file *os.File, fileName string, postBodyWriter *multipart.W // Set up the form file fileWriter, err := postBodyWriter.CreateFormFile("file", fileName) if err != nil { - framework.Failf("Unable to to write file at %s to buffer. Error: %s", fileName, err) + framework.Failf("Unable to write file at %s to buffer. Error: %s", fileName, err) } // Copy kubectl binary into the file writer if _, err := io.Copy(fileWriter, file); err != nil { - framework.Failf("Unable to to copy file at %s into the file writer. Error: %s", fileName, err) + framework.Failf("Unable to copy file at %s into the file writer. Error: %s", fileName, err) } // Nothing more should be written to this instance of the postBodyWriter diff --git a/test/e2e/storage/pd.go b/test/e2e/storage/pd.go index 6ce4ff27a1..7675079c55 100644 --- a/test/e2e/storage/pd.go +++ b/test/e2e/storage/pd.go @@ -575,7 +575,7 @@ func testPDPod(diskNames []string, targetNode types.NodeName, readOnly bool, num return pod } -// Waits for specified PD to to detach from specified hostName +// Waits for specified PD to detach from specified hostName func waitForPDDetach(diskName string, nodeName types.NodeName) error { if framework.TestContext.Provider == "gce" || framework.TestContext.Provider == "gke" { framework.Logf("Waiting for GCE PD %q to detach from node %q.", diskName, nodeName)