From 46525a7d197ccdb1242fe2cbae04185fa2966d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20K=C3=A4ldstr=C3=B6m?= Date: Mon, 30 May 2016 15:37:49 +0300 Subject: [PATCH] Fix comment typos in #25972 --- cmd/kubelet/app/options/options.go | 2 +- test/e2e/framework/util.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/kubelet/app/options/options.go b/cmd/kubelet/app/options/options.go index 77a6b72d9da..c64e71a552d 100644 --- a/cmd/kubelet/app/options/options.go +++ b/cmd/kubelet/app/options/options.go @@ -40,7 +40,7 @@ const ( defaultRootDir = "/var/lib/kubelet" experimentalFlannelOverlay = false - // When these values are updated, also update test/e2e/util.go + // When these values are updated, also update test/e2e/framework/util.go defaultPodInfraContainerImageName = "gcr.io/google_containers/pause" defaultPodInfraContainerImageVersion = "3.0" ) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 1e4f1ab690c..677670c51d8 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -140,7 +140,7 @@ const ( // before e2es. var ImagePullerLabels = map[string]string{"name": "e2e-image-puller"} -// GetServerArchitecture fetches the architecture of the target cluster. +// GetServerArchitecture fetches the architecture of the cluster's apiserver. func GetServerArchitecture(c *client.Client) string { arch := "" sVer, err := c.Discovery().ServerVersion() @@ -156,12 +156,12 @@ func GetServerArchitecture(c *client.Client) string { return arch } -// GetPauseImageName fetches the architecture of the target cluster and chooses the pause image to use. +// GetPauseImageName fetches the pause image name for the same architecture as the apiserver. func GetPauseImageName(c *client.Client) string { return currentPodInfraContainerImageName + "-" + GetServerArchitecture(c) + ":" + currentPodInfraContainerImageVersion } -// GetPauseImageNameForHostArch() fetches the pause image for the same architecture the machine is running on. +// GetPauseImageNameForHostArch fetches the pause image name for the same architecture the test is running on. func GetPauseImageNameForHostArch() string { return currentPodInfraContainerImageName + "-" + goRuntime.GOARCH + ":" + currentPodInfraContainerImageVersion }