From f5f83b076aace73e2159d516b2e9aa749a0c9454 Mon Sep 17 00:00:00 2001 From: Joshua Piccari Date: Fri, 4 Mar 2016 18:30:59 -0800 Subject: [PATCH] Improve go report card by fixing typos in comments --- pkg/client/cache/expiration_cache.go | 2 +- pkg/controller/deployment/deployment_controller.go | 2 +- pkg/kubelet/container_bridge.go | 2 +- pkg/util/labels/labels.go | 4 ++-- test/e2e/util.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/client/cache/expiration_cache.go b/pkg/client/cache/expiration_cache.go index c5797bcd8a1..964deda0795 100644 --- a/pkg/client/cache/expiration_cache.go +++ b/pkg/client/cache/expiration_cache.go @@ -33,7 +33,7 @@ import ( // *any* item in the cache. // 3. Time-stamps are stripped off unexpired entries before return // Note that the ExpirationCache is inherently slower than a normal -// threadSafeStore because it takes a write lock everytime it checks if +// threadSafeStore because it takes a write lock every time it checks if // an item has expired. type ExpirationCache struct { cacheStorage ThreadSafeStore diff --git a/pkg/controller/deployment/deployment_controller.go b/pkg/controller/deployment/deployment_controller.go index 8957072b9a6..dee2b4ee4e9 100644 --- a/pkg/controller/deployment/deployment_controller.go +++ b/pkg/controller/deployment/deployment_controller.go @@ -428,7 +428,7 @@ func (dc *DeploymentController) syncDeployment(key string) error { if d.Spec.Paused { // TODO: Implement scaling for paused deployments. - // Dont take any action for paused deployment. + // Don't take any action for paused deployment. // But keep the status up-to-date. // Ignore paused deployments glog.V(4).Infof("Updating status only for paused deployment %s/%s", d.Namespace, d.Name) diff --git a/pkg/kubelet/container_bridge.go b/pkg/kubelet/container_bridge.go index d95bf3d9c11..e151dc709b4 100644 --- a/pkg/kubelet/container_bridge.go +++ b/pkg/kubelet/container_bridge.go @@ -98,7 +98,7 @@ func ensureCbr0(wantCIDR *net.IPNet, promiscuous, babysitDaemons bool) error { // TODO: Remove this once the kernel bug (#20096) is fixed. if promiscuous { // Checking if the bridge is in promiscuous mode is as expensive and more brittle than - // simply setting the flag everytime. + // simply setting the flag every time. if err := exec.Command("ip", "link", "set", "cbr0", "promisc", "on").Run(); err != nil { glog.Error(err) return err diff --git a/pkg/util/labels/labels.go b/pkg/util/labels/labels.go index 2160e37299b..624d5ad6886 100644 --- a/pkg/util/labels/labels.go +++ b/pkg/util/labels/labels.go @@ -57,7 +57,7 @@ func CloneAndRemoveLabel(labels map[string]string, labelKey string) map[string]s // AddLabel returns a map with the given key and value added to the given map. func AddLabel(labels map[string]string, labelKey string, labelValue string) map[string]string { if labelKey == "" { - // Dont need to add a label. + // Don't need to add a label. return labels } if labels == nil { @@ -110,7 +110,7 @@ func CloneSelectorAndAddLabel(selector *unversioned.LabelSelector, labelKey stri // AddLabelToSelector returns a selector with the given key and value added to the given selector's MatchLabels. func AddLabelToSelector(selector *unversioned.LabelSelector, labelKey string, labelValue string) *unversioned.LabelSelector { if labelKey == "" { - // Dont need to add a label. + // Don't need to add a label. return selector } if selector.MatchLabels == nil { diff --git a/test/e2e/util.go b/test/e2e/util.go index 6257342a3a9..24635f72b6e 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -2619,7 +2619,7 @@ func NodeAddresses(nodelist *api.NodeList, addrType api.NodeAddressType) []strin return hosts } -// NodeSSHHosts returns SSH-able host names for all schedulable nodes - this exludes master node. +// NodeSSHHosts returns SSH-able host names for all schedulable nodes - this excludes master node. // It returns an error if it can't find an external IP for every node, though it still returns all // hosts that it found in that case. func NodeSSHHosts(c *client.Client) ([]string, error) {