From d1e8d47f80a2a6f22f22b78dc4cd90ed94f13f32 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 30 Jul 2020 12:47:08 +0000 Subject: [PATCH] fix typos --- hack/boilerplate/boilerplate.go | 2 +- pkg/minikube/node/cache.go | 4 ++-- pkg/minikube/out/register/cloud_events.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hack/boilerplate/boilerplate.go b/hack/boilerplate/boilerplate.go index 08377d846434..6d8f4eca9ee4 100644 --- a/hack/boilerplate/boilerplate.go +++ b/hack/boilerplate/boilerplate.go @@ -138,7 +138,7 @@ func filePasses(filename string, expectedBoilerplate []byte) (bool, error) { func filesToCheck(rootDir string, extensions map[string][]byte) ([]string, error) { var outFiles []string err := filepath.Walk(rootDir, func(path string, info os.FileInfo, err error) error { - // remove current workdir from the beginig of the path in case it matches the skipped path + // remove current workdir from the beginning of the path in case it matches the skipped path cwd, _ := os.Getwd() // replace "\" with "\\" for windows style path re := regexp.MustCompile(`\\`) diff --git a/pkg/minikube/node/cache.go b/pkg/minikube/node/cache.go index 711408646769..3cb0f6b66e4e 100644 --- a/pkg/minikube/node/cache.go +++ b/pkg/minikube/node/cache.go @@ -88,13 +88,13 @@ func handleDownloadOnly(cacheGroup, kicGroup *errgroup.Group, k8sVersion string) } // CacheKubectlBinary caches the kubectl binary -func CacheKubectlBinary(k8sVerison string) (string, error) { +func CacheKubectlBinary(k8sVersion string) (string, error) { binary := "kubectl" if runtime.GOOS == "windows" { binary = "kubectl.exe" } - return download.Binary(binary, k8sVerison, runtime.GOOS, runtime.GOARCH) + return download.Binary(binary, k8sVersion, runtime.GOOS, runtime.GOARCH) } // doCacheBinaries caches Kubernetes binaries in the foreground diff --git a/pkg/minikube/out/register/cloud_events.go b/pkg/minikube/out/register/cloud_events.go index 55d6a64827c1..5ad88effca92 100644 --- a/pkg/minikube/out/register/cloud_events.go +++ b/pkg/minikube/out/register/cloud_events.go @@ -79,7 +79,7 @@ func printAsCloudEvent(log Log, data map[string]string) { bs, err := event.MarshalJSON() if err != nil { - glog.Errorf("error marashalling event: %v", err) + glog.Errorf("error marshalling event: %v", err) return } fmt.Fprintln(outputFile, string(bs)) @@ -91,7 +91,7 @@ func printAndRecordCloudEvent(log Log, data map[string]string) { bs, err := event.MarshalJSON() if err != nil { - glog.Errorf("error marashalling event: %v", err) + glog.Errorf("error marshalling event: %v", err) return } fmt.Fprintln(outputFile, string(bs))