From f1258dca4e840fdb2eb561793beef701f9796e77 Mon Sep 17 00:00:00 2001 From: Ivan Shvedunov Date: Fri, 14 Oct 2016 00:40:41 +0300 Subject: [PATCH] Fix typos --- pkg/controller/controller_utils.go | 2 +- pkg/kubectl/apply.go | 2 +- pkg/kubectl/resource/builder.go | 2 +- pkg/kubelet/dockershim/docker_container_test.go | 2 +- plugin/pkg/scheduler/factory/factory_test.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/controller/controller_utils.go b/pkg/controller/controller_utils.go index d10e953d4e5..df5b6457621 100644 --- a/pkg/controller/controller_utils.go +++ b/pkg/controller/controller_utils.go @@ -348,7 +348,7 @@ func NewUIDTrackingControllerExpectations(ce ControllerExpectationsInterface) *U type PodControlInterface interface { // CreatePods creates new pods according to the spec. CreatePods(namespace string, template *api.PodTemplateSpec, object runtime.Object) error - // CreatePodsOnNode creates a new pod accorting to the spec on the specified node. + // CreatePodsOnNode creates a new pod according to the spec on the specified node. CreatePodsOnNode(nodeName, namespace string, template *api.PodTemplateSpec, object runtime.Object) error // CreatePodsWithControllerRef creates new pods according to the spec, and sets object as the pod's controller. CreatePodsWithControllerRef(namespace string, template *api.PodTemplateSpec, object runtime.Object, controllerRef *api.OwnerReference) error diff --git a/pkg/kubectl/apply.go b/pkg/kubectl/apply.go index de5e5acd99a..6dd4f6bc32c 100644 --- a/pkg/kubectl/apply.go +++ b/pkg/kubectl/apply.go @@ -71,7 +71,7 @@ func SetOriginalConfiguration(info *resource.Info, original []byte) error { } // GetModifiedConfiguration retrieves the modified configuration of the object. -// If annotate is true, it embeds the result as an anotation in the modified +// If annotate is true, it embeds the result as an annotation in the modified // configuration. If an object was read from the command input, it will use that // version of the object. Otherwise, it will use the version from the server. func GetModifiedConfiguration(info *resource.Info, annotate bool, codec runtime.Encoder) ([]byte, error) { diff --git a/pkg/kubectl/resource/builder.go b/pkg/kubectl/resource/builder.go index ad7f399e79c..afb64e97f1f 100644 --- a/pkg/kubectl/resource/builder.go +++ b/pkg/kubectl/resource/builder.go @@ -291,7 +291,7 @@ func (b *Builder) DefaultNamespace() *Builder { } // AllNamespaces instructs the builder to use NamespaceAll as a namespace to request resources -// acroll all namespace. This overrides the namespace set by NamespaceParam(). +// across all of the namespace. This overrides the namespace set by NamespaceParam(). func (b *Builder) AllNamespaces(allNamespace bool) *Builder { if allNamespace { b.namespace = api.NamespaceAll diff --git a/pkg/kubelet/dockershim/docker_container_test.go b/pkg/kubelet/dockershim/docker_container_test.go index 524d96e5003..e5595860d80 100644 --- a/pkg/kubelet/dockershim/docker_container_test.go +++ b/pkg/kubelet/dockershim/docker_container_test.go @@ -52,7 +52,7 @@ func TestListContainers(t *testing.T) { s := makeSandboxConfig(fmt.Sprintf("%s%d", podName, i), fmt.Sprintf("%s%d", namespace, i), fmt.Sprintf("%d", i), 0) labels := map[string]string{"abc.xyz": fmt.Sprintf("label%d", i)} - annotations := map[string]string{"foo.bar.baz": fmt.Sprintf("annotaion%d", i)} + annotations := map[string]string{"foo.bar.baz": fmt.Sprintf("annotation%d", i)} c := makeContainerConfig(s, fmt.Sprintf("%s%d", containerName, i), fmt.Sprintf("%s:v%d", image, i), uint32(i), labels, annotations) sConfigs = append(sConfigs, s) diff --git a/plugin/pkg/scheduler/factory/factory_test.go b/plugin/pkg/scheduler/factory/factory_test.go index 230702adc3d..bf86d8ffc20 100644 --- a/plugin/pkg/scheduler/factory/factory_test.go +++ b/plugin/pkg/scheduler/factory/factory_test.go @@ -322,7 +322,7 @@ func TestResponsibleForPod(t *testing.T) { factoryDefaultScheduler := NewConfigFactory(client, api.DefaultSchedulerName, api.DefaultHardPodAffinitySymmetricWeight, api.DefaultFailureDomains) // factory of "foo-scheduler" factoryFooScheduler := NewConfigFactory(client, "foo-scheduler", api.DefaultHardPodAffinitySymmetricWeight, api.DefaultFailureDomains) - // scheduler annotaions to be tested + // scheduler annotations to be tested schedulerAnnotationFitsDefault := map[string]string{"scheduler.alpha.kubernetes.io/name": "default-scheduler"} schedulerAnnotationFitsFoo := map[string]string{"scheduler.alpha.kubernetes.io/name": "foo-scheduler"} schedulerAnnotationFitsNone := map[string]string{"scheduler.alpha.kubernetes.io/name": "bar-scheduler"}