docs: fix typos and grammar in code comments
Fix duplicate words, incorrect articles (a/an), it's/its, and other small
grammar mistakes in Go comments and user-facing messages across pkg/, cmd/,
and tests/.
Signed-off-by: Joshua Hoblitt <josh@hoblitt.com>
(cherry picked from commit c0eb360041)
This commit is contained in:
1 parent
4fe02aa1b5
commit
ac686a02c8
24 files changed
+72
-72
No files matched your search
@@ -45,7 +45,7 @@ type CommandOut struct {
|
||||
Err error
|
||||
}
|
||||
|
||||
// ExecuteCommand executes a os command with stdin and returns output
|
||||
// ExecuteCommand executes an OS command with stdin and returns output
|
||||
func ExecuteCommand(cmdStruct CommandArgs) CommandOut {
|
||||
logger.Infof("Running %s %v", cmdStruct.Command, cmdStruct.CmdArgs)
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ type HelmHelper struct {
|
||||
HelmPath string
|
||||
}
|
||||
|
||||
// NewHelmHelper creates a instance of HelmHelper
|
||||
// NewHelmHelper creates an instance of HelmHelper
|
||||
func NewHelmHelper(helmPath string) *HelmHelper {
|
||||
executor := &exec.CommandExecutor{}
|
||||
return &HelmHelper{executor: executor, HelmPath: helmPath}
|
||||
|
||||
@@ -78,7 +78,7 @@ func getCmd() string {
|
||||
return cmd
|
||||
}
|
||||
|
||||
// CreateK8sHelper creates a instance of k8sHelper
|
||||
// CreateK8sHelper creates an instance of k8sHelper
|
||||
func CreateK8sHelper(t func() *testing.T) (*K8sHelper, error) {
|
||||
executor := &exec.CommandExecutor{}
|
||||
config, err := config.GetConfig()
|
||||
@@ -987,7 +987,7 @@ func (k8sh *K8sHelper) IsDefaultStorageClassPresent() (bool, error) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
// CheckPvcCountAndStatus returns True if expected number pvs for a app are found
|
||||
// CheckPvcCountAndStatus returns True if expected number of pvs for an app are found
|
||||
func (k8sh *K8sHelper) CheckPvcCountAndStatus(podName string, namespace string, expectedPvcCount int, expectedStatus string) bool {
|
||||
logger.Infof("wait until %d pvc for app=%s are present", expectedPvcCount, podName)
|
||||
listOpts := metav1.ListOptions{LabelSelector: "app=" + podName}
|
||||
|
||||
Reference in new issue
Block a user