From bed10c7fe6744a274a962969917e5d4217c77c70 Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Fri, 24 May 2024 11:13:58 +0800 Subject: [PATCH] Fix the problems found by codespell Signed-off-by: Daniel Jiang --- .github/workflows/pr-codespell.yml | 2 +- CODE_OF_CONDUCT.md | 2 +- design/Implemented/move-gh-org.md | 2 +- .../volume-snapshot-data-movement.md | 2 +- internal/resourcepolicies/resource_policies_test.go | 4 ++-- internal/resourcepolicies/volume_resources_test.go | 2 +- pkg/controller/data_upload_controller_test.go | 2 +- pkg/repository/manager.go | 2 +- pkg/util/podvolume/pod_volume_test.go | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pr-codespell.yml b/.github/workflows/pr-codespell.yml index b1aa46f904..ca733318ca 100644 --- a/.github/workflows/pr-codespell.yml +++ b/.github/workflows/pr-codespell.yml @@ -15,7 +15,7 @@ jobs: with: # ignore the config/.../crd.go file as it's generated binary data that is edited elswhere. skip: .git,*.png,*.jpg,*.woff,*.ttf,*.gif,*.ico,./config/crd/v1beta1/crds/crds.go,./config/crd/v1/crds/crds.go,./config/crd/v2alpha1/crds/crds.go,./go.sum,./LICENSE - ignore_words_list: iam,aks,ist,bridget,ue,shouldnot,atleast + ignore_words_list: iam,aks,ist,bridget,ue,shouldnot,atleast,notin,sme check_filenames: true check_hidden: true diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index c6b91b8f34..146cf4141c 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -5,7 +5,7 @@ We as members, contributors, and leaders pledge to make participation in the Velero project and our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, +identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation. diff --git a/design/Implemented/move-gh-org.md b/design/Implemented/move-gh-org.md index 82bffa3a17..0d76a748a6 100644 --- a/design/Implemented/move-gh-org.md +++ b/design/Implemented/move-gh-org.md @@ -65,7 +65,7 @@ This page contains a pre-migration checklist for ensuring a repo migration goes #### Updating Netlify -The settings for Netflify should remain the same, except that it now needs to be installed in the new repo. The instructions on how to install Netlify on the new repo are here: https://www.netlify.com/docs/github-permissions/. +The settings for Netlify should remain the same, except that it now needs to be installed in the new repo. The instructions on how to install Netlify on the new repo are here: https://www.netlify.com/docs/github-permissions/. #### Communication strategy diff --git a/design/volume-snapshot-data-movement/volume-snapshot-data-movement.md b/design/volume-snapshot-data-movement/volume-snapshot-data-movement.md index f8c678dbf6..2b258f18bf 100644 --- a/design/volume-snapshot-data-movement/volume-snapshot-data-movement.md +++ b/design/volume-snapshot-data-movement/volume-snapshot-data-movement.md @@ -27,7 +27,7 @@ Moreover, we would like to create a general workflow to variations during the da - Support different data accesses, i.e., file system level and block level - Support different snapshot types, i.e., CSI snapshot, volume snapshot API from storage vendors - Support different snapshot accesses, i.e., through PV generated from snapshots, and through direct access API from storage vendors -- Reuse the existing Velero generic data path as creatd in [Unified Repository design][1] +- Reuse the existing Velero generic data path as created in [Unified Repository design][1] ## Non-Goals diff --git a/internal/resourcepolicies/resource_policies_test.go b/internal/resourcepolicies/resource_policies_test.go index 3476874378..f5643dac84 100644 --- a/internal/resourcepolicies/resource_policies_test.go +++ b/internal/resourcepolicies/resource_policies_test.go @@ -182,7 +182,7 @@ func TestGetResourceMatchedAction(t *testing.T) { expectedAction: &Action{Type: "snapshot"}, }, { - name: "dismatch all policies", + name: "mismatch all policies", volume: &structuredVolume{ capacity: *resource.NewQuantity(50<<30, resource.BinarySI), storageClass: "ebs-sc", @@ -394,7 +394,7 @@ volumePolicies: skip: true, }, { - name: "dismatch volume by types", + name: "mismatch volume by types", yamlData: `version: v1 volumePolicies: - conditions: diff --git a/internal/resourcepolicies/volume_resources_test.go b/internal/resourcepolicies/volume_resources_test.go index f852baff3b..4ff7a6c9c1 100644 --- a/internal/resourcepolicies/volume_resources_test.go +++ b/internal/resourcepolicies/volume_resources_test.go @@ -165,7 +165,7 @@ func TestNFSConditionMatch(t *testing.T) { expectedMatch: true, }, { - name: "server dismatch", + name: "server mismatch", condition: &nfsCondition{&nFSVolumeSource{Server: "192.168.10.20", Path: ""}}, volume: setStructuredVolume(*resource.NewQuantity(0, resource.BinarySI), "", &nFSVolumeSource{Server: ""}, nil), expectedMatch: false, diff --git a/pkg/controller/data_upload_controller_test.go b/pkg/controller/data_upload_controller_test.go index 7fc4514c83..13c0b20f70 100644 --- a/pkg/controller/data_upload_controller_test.go +++ b/pkg/controller/data_upload_controller_test.go @@ -427,7 +427,7 @@ func TestReconcile(t *testing.T) { notCreateFSBR: true, }, { - name: "Dataupload should not be cancel with dismatch node", + name: "Dataupload should not be cancel with mismatch node", pod: builder.ForPod(velerov1api.DefaultNamespace, dataUploadName).Volumes(&corev1.Volume{Name: "dataupload-1"}).Result(), du: func() *velerov2alpha1api.DataUpload { du := dataUploadBuilder().Phase(velerov2alpha1api.DataUploadPhaseInProgress).SnapshotType(fakeSnapshotType).Cancel(true).Result() diff --git a/pkg/repository/manager.go b/pkg/repository/manager.go index 97ee019657..97915e5c04 100644 --- a/pkg/repository/manager.go +++ b/pkg/repository/manager.go @@ -212,7 +212,7 @@ func (m *manager) PruneRepo(repo *velerov1api.BackupRepository) error { return errors.WithStack(err) } - log.Info("Start to maintence repo") + log.Info("Start to maintenance repo") maintenanceJob, err := buildMaintenanceJob(m.maintenanceCfg, param, m.client, m.namespace) if err != nil { diff --git a/pkg/util/podvolume/pod_volume_test.go b/pkg/util/podvolume/pod_volume_test.go index f0d62bdaa7..44083e9ced 100644 --- a/pkg/util/podvolume/pod_volume_test.go +++ b/pkg/util/podvolume/pod_volume_test.go @@ -581,7 +581,7 @@ func TestGetPodVolumeNameForPVC(t *testing.T) { expectedVolumeName string }{ { - name: "should get volume name for pod with multuple PVCs", + name: "should get volume name for pod with multiple PVCs", pod: v1.Pod{ Spec: v1.PodSpec{ Volumes: []v1.Volume{