From 1fda202cf9c9728c2aa7e1e3f019e2a4209c3364 Mon Sep 17 00:00:00 2001
From: cuishuang <imcusg@gmail.com>
Date: Wed, 2 Mar 2022 18:04:35 +0800
Subject: [PATCH] all: fix some typos

Signed-off-by: cuishuang <imcusg@gmail.com>
---
 cmd/flux/create_source_git.go        | 2 +-
 cmd/flux/main_test.go                | 2 +-
 pkg/manifestgen/install/manifests.go | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/flux/create_source_git.go b/cmd/flux/create_source_git.go
index 2f13dd9c..b8e4d6ae 100644
--- a/cmd/flux/create_source_git.go
+++ b/cmd/flux/create_source_git.go
@@ -169,7 +169,7 @@ func createSourceGitCmdRun(cmd *cobra.Command, args []string) error {
 	}
 
 	if sourceGitArgs.caFile != "" && u.Scheme == "ssh" {
-		return fmt.Errorf("specifing a CA file is not supported for Git over SSH")
+		return fmt.Errorf("specifying a CA file is not supported for Git over SSH")
 	}
 
 	if sourceGitArgs.recurseSubmodules && sourceGitArgs.gitImplementation == sourcev1.LibGit2Implementation {
diff --git a/cmd/flux/main_test.go b/cmd/flux/main_test.go
index 4408c8d7..23d9d58f 100644
--- a/cmd/flux/main_test.go
+++ b/cmd/flux/main_test.go
@@ -302,7 +302,7 @@ func assertGoldenTemplateFile(goldenFile string, templateValues map[string]strin
 			expectedOutput = string(goldenFileContents)
 		}
 		if assertErr := assertGoldenValue(expectedOutput)(output, err); assertErr != nil {
-			// Update the golden files if comparision fails and the update flag is set.
+			// Update the golden files if comparison fails and the update flag is set.
 			if *update && output != "" {
 				// Skip update if there are template values.
 				if len(templateValues) > 0 {
diff --git a/pkg/manifestgen/install/manifests.go b/pkg/manifestgen/install/manifests.go
index 5089074f..23d6a3cc 100644
--- a/pkg/manifestgen/install/manifests.go
+++ b/pkg/manifestgen/install/manifests.go
@@ -71,7 +71,7 @@ func generate(base string, options Options) error {
 		// In such environments they normally add `.cluster.local` and `.local`
 		// suffixes to `no_proxy` variable in order to prevent cluster-local
 		// traffic from going through http proxy. Without fully specified
-		// domain they need to mention `notifications-controller` explicity in
+		// domain they need to mention `notifications-controller` explicitly in
 		// `no_proxy` variable after debugging http proxy logs.
 		options.EventsAddr = fmt.Sprintf("http://%s.%s.svc.%s/", options.NotificationController, options.Namespace, options.ClusterDomain)
 	}
-- 
GitLab