From 84166928dfa5cc5ae27e41ba140c75526dde4e46 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Thu, 18 Aug 2022 08:58:38 -0600 Subject: [PATCH] ci: update codespell config Codespell had its first release in a year yesterday and added some dictionary rules that are now being flagged in our code. Only one issue required changes to our code, so modify the codespell config to allow the words we want to allow. Signed-off-by: Blaine Gardner (cherry picked from commit 5b0a22ca467ddff6390821126b4eabceb428f853) --- .github/workflows/codespell.yaml | 9 +++++++-- deploy/charts/rook-ceph-cluster/values.yaml | 2 +- deploy/examples/cluster.yaml | 2 +- deploy/examples/operator-openshift.yaml | 2 +- tests/framework/utils/exec_utils.go | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/codespell.yaml b/.github/workflows/codespell.yaml index 509ea592a..eb69163b3 100644 --- a/.github/workflows/codespell.yaml +++ b/.github/workflows/codespell.yaml @@ -22,7 +22,11 @@ jobs: - name: codespell uses: codespell-project/actions-codespell@master with: - skip: .git,*.png,*.jpg,*.svg,*.sum + # LICENSE: skip file because codespell wants to flag complies, which we may want to flag + # in other places, so ignore the file itself assuming it is correct + # crds.yaml, resources.yaml: CRD files are fully generated from content we control (should + # be flagged elsewhere) and content we don't control (can't fix easily), so ignore + skip: .git,*.png,*.jpg,*.svg,*.sum,./LICENSE,./deploy/examples/crds.yaml,./deploy/charts/rook-ceph/templates/resources.yaml # aks: Amazon Kubernetes Service # keyserver: flag to apt-key # atleast: codespell wants to flag any 'AtLeast' method @@ -32,6 +36,7 @@ jobs: # te: udev persistent naming test in pkg/daemon/ceph/osd/daemon_test.go # parm: modinfo parameter # assigment: inherited from K8s TopologySpreadConstraints dependency - ignore_words_list: aks,keyserver,atleast,ser,ist,ba,iam,te,parm,assigment + # ro, RO: means read-only + ignore_words_list: aks,keyserver,atleast,ser,ist,ba,iam,te,parm,assigment,ro,RO check_filenames: true check_hidden: true diff --git a/deploy/charts/rook-ceph-cluster/values.yaml b/deploy/charts/rook-ceph-cluster/values.yaml index a8d7ed9d2..888006724 100644 --- a/deploy/charts/rook-ceph-cluster/values.yaml +++ b/deploy/charts/rook-ceph-cluster/values.yaml @@ -79,7 +79,7 @@ cephClusterSpec: # WaitTimeoutForHealthyOSDInMinutes defines the time (in minutes) the operator would wait before an OSD can be stopped for upgrade or restart. # If the timeout exceeds and OSD is not ok to stop, then the operator would skip upgrade for the current OSD and proceed with the next one - # if `continueUpgradeAfterChecksEvenIfNotHealthy` is `false`. If `continueUpgradeAfterChecksEvenIfNotHealthy` is `true`, then opertor would + # if `continueUpgradeAfterChecksEvenIfNotHealthy` is `false`. If `continueUpgradeAfterChecksEvenIfNotHealthy` is `true`, then operator would # continue with the upgrade of an OSD even if its not ok to stop after the timeout. This timeout won't be applied if `skipUpgradeChecks` is `true`. # The default wait timeout is 10 minutes. waitTimeoutForHealthyOSDInMinutes: 10 diff --git a/deploy/examples/cluster.yaml b/deploy/examples/cluster.yaml index 673ac0332..07e783c8c 100644 --- a/deploy/examples/cluster.yaml +++ b/deploy/examples/cluster.yaml @@ -39,7 +39,7 @@ spec: continueUpgradeAfterChecksEvenIfNotHealthy: false # WaitTimeoutForHealthyOSDInMinutes defines the time (in minutes) the operator would wait before an OSD can be stopped for upgrade or restart. # If the timeout exceeds and OSD is not ok to stop, then the operator would skip upgrade for the current OSD and proceed with the next one - # if `continueUpgradeAfterChecksEvenIfNotHealthy` is `false`. If `continueUpgradeAfterChecksEvenIfNotHealthy` is `true`, then opertor would + # if `continueUpgradeAfterChecksEvenIfNotHealthy` is `false`. If `continueUpgradeAfterChecksEvenIfNotHealthy` is `true`, then operator would # continue with the upgrade of an OSD even if its not ok to stop after the timeout. This timeout won't be applied if `skipUpgradeChecks` is `true`. # The default wait timeout is 10 minutes. waitTimeoutForHealthyOSDInMinutes: 10 diff --git a/deploy/examples/operator-openshift.yaml b/deploy/examples/operator-openshift.yaml index 20f08b1dc..c6fc6766f 100644 --- a/deploy/examples/operator-openshift.yaml +++ b/deploy/examples/operator-openshift.yaml @@ -60,7 +60,7 @@ allowHostNetwork: true # This need to be set to true as we use HostPath allowHostDirVolumePlugin: true priority: -# SYS_ADMIN is needed for rbd to execture rbd map command +# SYS_ADMIN is needed for rbd to execute rbd map command allowedCapabilities: ["SYS_ADMIN"] # Needed as we run liveness container on daemonset pods allowHostPorts: true diff --git a/tests/framework/utils/exec_utils.go b/tests/framework/utils/exec_utils.go index adc2d4b6b..1835f54d3 100644 --- a/tests/framework/utils/exec_utils.go +++ b/tests/framework/utils/exec_utils.go @@ -29,7 +29,7 @@ import ( var logger = capnslog.NewPackageLogger("github.com/rook/rook", "testutil") -// CommandArgs is a warpper for cmd args +// CommandArgs is a wrapper for cmd args type CommandArgs struct { Command string CmdArgs []string