From 2aeb56dc34bb0be245815a485403bcad18805b6e Mon Sep 17 00:00:00 2001 From: Connor Bradshaw Date: Thu, 18 Aug 2022 13:24:56 -0700 Subject: [PATCH] fix: fixing codespell errors --- .github/workflows/codespell.yml | 2 +- cmd/az-analyze/README.md | 2 +- cmd/az-log/cmd/get.go | 4 ++-- pkg/azuredisk/azuredisk_v2.go | 2 +- pkg/azuredisk/controllerserver_test.go | 2 +- pkg/azureutils/azure_disk_utils_test.go | 2 +- pkg/optimization/device_perf_helper.go | 2 +- ...namically_provisioned_pod_failover_with_replicas_tester.go | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 3cb2dc5c4e..14c83405a7 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -13,4 +13,4 @@ jobs: with: check_filenames: true skip: ./.git,./.github/workflows/codespell.yml,.git,*.png,*.jpg,*.svg,*.sum,./vendor,go.sum,crd-csi-snapshot-ga.yaml,crd-csi-snapshot.yaml - ignore_words_list: "AKS,aks" + ignore_words_list: "AKS,aks,ro" diff --git a/cmd/az-analyze/README.md b/cmd/az-analyze/README.md index bf0ad27505..e003fbc4a4 100644 --- a/cmd/az-analyze/README.md +++ b/cmd/az-analyze/README.md @@ -38,4 +38,4 @@ driverNamespace: "" # default is "azure-disk-csi" |--pod \|Show all azVolumes/azVolumesAttachments that are used by a given pod.| |--node \|Show all azVolumesAttachments that are present in a given node.| |--zone \|Show all azVolumesAttachments that are present in a given zone.| -|--namespace \|Specify the namespace of the pod. If it's not specified, default namesapce is used.| +|--namespace \|Specify the namespace of the pod. If it's not specified, default namespace is used.| diff --git a/cmd/az-log/cmd/get.go b/cmd/az-log/cmd/get.go index 58f7ce113c..3d91ca50af 100644 --- a/cmd/az-log/cmd/get.go +++ b/cmd/az-log/cmd/get.go @@ -25,8 +25,8 @@ import ( // getCmd represents the get command var getCmd = &cobra.Command{ Use: "get", - Short: "Fetching logs of pods in kube-system namesapce", - Long: `Fetching logs of pods in kube-system namesapce`, + Short: "Fetching logs of pods in kube-system namespace", + Long: `Fetching logs of pods in kube-system namespace`, Run: func(cmd *cobra.Command, args []string) { if len(args) == 0 { fmt.Printf("You must specify which source to retrieve and process logs from to \"%s\".\n", cmd.Name()) diff --git a/pkg/azuredisk/azuredisk_v2.go b/pkg/azuredisk/azuredisk_v2.go index 9230634213..347e079bef 100644 --- a/pkg/azuredisk/azuredisk_v2.go +++ b/pkg/azuredisk/azuredisk_v2.go @@ -298,7 +298,7 @@ func (d *DriverV2) Run(endpoint, kubeconfig string, disableAVSetNodes, testingMo // Driver d acts as IdentityServer, ControllerServer and NodeServer s.Start(endpoint, d, d, d, testingMock) - // Start sending hearbeat and mark node as ready + // Start sending heartbeat and mark node as ready if d.config.NodeConfig.Enabled { go d.runAzDriverNodeHeartbeatLoop(ctx) } diff --git a/pkg/azuredisk/controllerserver_test.go b/pkg/azuredisk/controllerserver_test.go index 5136792947..05b60e6e6b 100644 --- a/pkg/azuredisk/controllerserver_test.go +++ b/pkg/azuredisk/controllerserver_test.go @@ -648,7 +648,7 @@ func TestGetSnapshotInfo(t *testing.T) { expectedError: nil, }, { - // case insentive check + // case insensitive check snapshotID: "testurl/subscriptions/12/resourcegroups/23/providers/Microsoft.Compute/snapshots/snapshot-name", expectedSnapshotName: "snapshot-name", expectedRGName: "23", diff --git a/pkg/azureutils/azure_disk_utils_test.go b/pkg/azureutils/azure_disk_utils_test.go index b2b7722954..c81403883c 100644 --- a/pkg/azureutils/azure_disk_utils_test.go +++ b/pkg/azureutils/azure_disk_utils_test.go @@ -602,7 +602,7 @@ func TestGetResourceGroupFromURI(t *testing.T) { expectError: false, }, { - // case insentive check + // case insensitive check diskURL: "/subscriptions/4be8920b-2978-43d7-axyz-04d8549c1d05/resourcegroups/azure-k8s1102/providers/Microsoft.Compute/disks/andy-mghyb1102-dynamic-pvc-f7f014c9-49f4-11e8-ab5c-000d3af7b38e", expectedResult: "azure-k8s1102", expectError: false, diff --git a/pkg/optimization/device_perf_helper.go b/pkg/optimization/device_perf_helper.go index 0f3269d010..892bd0fcc0 100644 --- a/pkg/optimization/device_perf_helper.go +++ b/pkg/optimization/device_perf_helper.go @@ -25,7 +25,7 @@ import ( ) // IsValidPerfProfile Checks to see if perf profile passed is correct -// Right now we are only supporing basic profile +// Right now we are only supporting basic profile // Other advanced profiles to come later func IsValidPerfProfile(profile string) bool { return isPerfTuningEnabled(profile) || strings.EqualFold(profile, consts.PerfProfileNone) diff --git a/test/e2e/testsuites/dynamically_provisioned_pod_failover_with_replicas_tester.go b/test/e2e/testsuites/dynamically_provisioned_pod_failover_with_replicas_tester.go index 2bc1507cd6..de65cf9679 100644 --- a/test/e2e/testsuites/dynamically_provisioned_pod_failover_with_replicas_tester.go +++ b/test/e2e/testsuites/dynamically_provisioned_pod_failover_with_replicas_tester.go @@ -155,7 +155,7 @@ func (t *PodFailoverWithReplicas) Run(client clientset.Interface, namespace *v1. } ginkgo.By("Verifying that pod got created on the correct node.") - // verfiy that the pod failed over the replica node + // verify that the pod failed over the replica node podObjs, err := podutil.GetPodsForDeployment(tDeployment.Client, tDeployment.Deployment) framework.ExpectNoError(err) for _, podObj := range podObjs.Items {