From 3ac9b27b2ae8b5fd9e2c186a498c207c39b18309 Mon Sep 17 00:00:00 2001
From: qingsenLi
Date: Fri, 2 Nov 2018 00:54:41 +0800
Subject: [PATCH] remove repetitive word in annotation
---
pkg/kubectl/cmd/run/run.go | 2 +-
pkg/kubelet/dockershim/libdocker/helpers_test.go | 2 +-
pkg/kubelet/util/manager/cache_based_manager.go | 2 +-
pkg/volume/cinder/attacher.go | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/pkg/kubectl/cmd/run/run.go b/pkg/kubectl/cmd/run/run.go
index a864b4d6ae..46ddbc1a4d 100644
--- a/pkg/kubectl/cmd/run/run.go
+++ b/pkg/kubectl/cmd/run/run.go
@@ -655,7 +655,7 @@ func (o *RunOptions) createGeneratedObject(f cmdutil.Factory, cmd *cobra.Command
if err != nil {
return nil, err
}
- // run has compiled knowledge of the thing is is creating
+ // run has compiled knowledge of the thing is creating
gvks, _, err := scheme.Scheme.ObjectKinds(obj)
if err != nil {
return nil, err
diff --git a/pkg/kubelet/dockershim/libdocker/helpers_test.go b/pkg/kubelet/dockershim/libdocker/helpers_test.go
index 546a604c9a..e6a4819834 100644
--- a/pkg/kubelet/dockershim/libdocker/helpers_test.go
+++ b/pkg/kubelet/dockershim/libdocker/helpers_test.go
@@ -110,7 +110,7 @@ func TestMatchImageTagOrSHA(t *testing.T) {
Output: true,
},
{
- // RepoDigest match is is required
+ // RepoDigest match is required
Inspected: dockertypes.ImageInspect{
ID: "",
RepoDigests: []string{"docker.io/centos/ruby-23-centos7@sha256:000084acbbfb0347272112d2eb95574625c0c60b4e2fdadb139de5859cf754bf"},
diff --git a/pkg/kubelet/util/manager/cache_based_manager.go b/pkg/kubelet/util/manager/cache_based_manager.go
index f8c1100f47..12f2a9c04d 100644
--- a/pkg/kubelet/util/manager/cache_based_manager.go
+++ b/pkg/kubelet/util/manager/cache_based_manager.go
@@ -259,7 +259,7 @@ func (c *cacheBasedManager) UnregisterPod(pod *v1.Pod) {
// necessary for registered pods.
// It implements the following logic:
// - whenever a pod is created or updated, the cached versions of all objects
-// is is referencing are invalidated
+// is referencing are invalidated
// - every GetObject() call tries to fetch the value from local cache; if it is
// not there, invalidated or too old, we fetch it from apiserver and refresh the
// value in cache; otherwise it is just fetched from cache
diff --git a/pkg/volume/cinder/attacher.go b/pkg/volume/cinder/attacher.go
index 2cdc6da7a5..a5fd0b07fa 100644
--- a/pkg/volume/cinder/attacher.go
+++ b/pkg/volume/cinder/attacher.go
@@ -212,7 +212,7 @@ func (attacher *cinderDiskAttacher) VolumesAreAttached(specs []*volume.Spec, nod
}
func (attacher *cinderDiskAttacher) WaitForAttach(spec *volume.Spec, devicePath string, _ *v1.Pod, timeout time.Duration) (string, error) {
- // NOTE: devicePath is is path as reported by Cinder, which may be incorrect and should not be used. See Issue #33128
+ // NOTE: devicePath is path as reported by Cinder, which may be incorrect and should not be used. See Issue #33128
volumeID, _, _, err := getVolumeInfo(spec)
if err != nil {
return "", err