From 9c561d0c682817edf2c5fa216b8af9c9bb9b5ff5 Mon Sep 17 00:00:00 2001 From: mooncake Date: Thu, 27 Sep 2018 22:58:47 +0800 Subject: [PATCH] remove duplicate words in files --- cmd/kube-scheduler/app/options/insecure_serving.go | 2 +- cmd/kubeadm/app/phases/upgrade/staticpods.go | 2 +- cmd/kubeadm/app/preflight/checks.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kube-scheduler/app/options/insecure_serving.go b/cmd/kube-scheduler/app/options/insecure_serving.go index 320b9352b8..78662f69eb 100644 --- a/cmd/kube-scheduler/app/options/insecure_serving.go +++ b/cmd/kube-scheduler/app/options/insecure_serving.go @@ -28,7 +28,7 @@ import ( kubeschedulerconfig "k8s.io/kubernetes/pkg/scheduler/apis/config" ) -// CombinedInsecureServingOptions sets up up to two insecure listeners for healthz and metrics. The flags +// CombinedInsecureServingOptions sets up to two insecure listeners for healthz and metrics. The flags // override the ComponentConfig and DeprecatedInsecureServingOptions values for both. type CombinedInsecureServingOptions struct { Healthz *apiserveroptions.DeprecatedInsecureServingOptions diff --git a/cmd/kubeadm/app/phases/upgrade/staticpods.go b/cmd/kubeadm/app/phases/upgrade/staticpods.go index 900b39c98b..941391e130 100644 --- a/cmd/kubeadm/app/phases/upgrade/staticpods.go +++ b/cmd/kubeadm/app/phases/upgrade/staticpods.go @@ -511,7 +511,7 @@ func rollbackOldManifests(oldManifests map[string]string, origErr error, pathMgr return fmt.Errorf("couldn't upgrade control plane. kubeadm has tried to recover everything into the earlier state. Errors faced: %v", errs) } -// rollbackEtcdData rolls back the the content of etcd folder if something went wrong. +// rollbackEtcdData rolls back the content of etcd folder if something went wrong. // When the folder contents are successfully rolled back, nil is returned, otherwise an error is returned. func rollbackEtcdData(cfg *kubeadmapi.InitConfiguration, pathMgr StaticPodPathManager) error { backupEtcdDir := pathMgr.BackupEtcdDir() diff --git a/cmd/kubeadm/app/preflight/checks.go b/cmd/kubeadm/app/preflight/checks.go index 4c6a958b30..3fcc4a3332 100644 --- a/cmd/kubeadm/app/preflight/checks.go +++ b/cmd/kubeadm/app/preflight/checks.go @@ -501,7 +501,7 @@ func (subnet HTTPProxyCIDRCheck) Check() (warnings, errors []error) { return nil, nil } -// SystemVerificationCheck defines struct used for for running the system verification node check in test/e2e_node/system +// SystemVerificationCheck defines struct used for running the system verification node check in test/e2e_node/system type SystemVerificationCheck struct { IsDocker bool }