Skip to content

Commit 46fa238

Browse files
ratailoropenshift-merge-bot[bot]
authored andcommitted
Add codespell hook to precommit
This change adds codespell hook in precommit. This change also fixes typos in code in job-name, echo message, function name and comments etc.
1 parent 4160b51 commit 46fa238

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+67
-60
lines changed

.codespell.ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
aNULL

.github/workflows/build-operator-dont-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- '*'
77

88
jobs:
9-
build-nova-operator-with-bunlde-and-index:
9+
build-nova-operator-with-bundle-and-index:
1010
name: Build
1111
runs-on: ubuntu-latest
1212

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ repos:
7676
# E020: Function declaration not in format ^function name {$
7777
# E012: here doc didn't end before EOF
7878

79+
- repo: https://github.com/codespell-project/codespell
80+
rev: v2.4.1
81+
hooks:
82+
- id: codespell
83+
args: ['--ignore-words=.codespell.ignore']
84+
7985
- repo: https://github.com/golangci/golangci-lint
8086
rev: v1.59.1
8187
hooks:

.zuul.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
description: |
99
This job deploy a basic "Compute Starter Kit" topology
1010
https://www.openstack.org/software/sample-configs#compute-starter-kit
11-
that is the minium set of openstack services required to boot a vm.
11+
that is the minimum set of openstack services required to boot a vm.
1212
post-run:
1313
- ci/nova-operator-base/playbooks/collect-logs.yaml
1414
vars:
@@ -163,8 +163,8 @@
163163
# test_server_detach_rules and test_old_versions_reject are blocked by the requirement
164164
# to use service tokens to authenticate with cinder when a volume is attached to a server
165165
# as such the tests are not valid following CVE-2023-2088
166-
# test_encrypted_cinder_volumes_cryptsetup use encyption format plain which is either
167-
# not supported by ceph or a volume type that supprots it is not available.
166+
# test_encrypted_cinder_volumes_cryptsetup use encryption format plain which is either
167+
# not supported by ceph or a volume type that supports it is not available.
168168
# luks support is enabled and we are testing encrypted volumes with luks.
169169
# tempest.scenario.test_network_v6 is disabled as it is 8 slow test case
170170
# that does not cover nova functionality. Also we keep running it in

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ kuttl-test-cleanup:
421421
oc delete --wait=true --all=true -n $(KUTTL_NAMESPACE) --timeout=120s OpenStackControlPlane; \
422422
oc delete --wait=true namespace $(KUTTL_NAMESPACE); \
423423
else \
424-
echo "Namespce already cleaned up. Nothing to do"; \
424+
echo "Namespace already cleaned up. Nothing to do"; \
425425
fi
426426

427427
CRD_SCHEMA_CHECKER_VERSION ?= release-4.16

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ A golang operator for openstack nova lifecycle management
66

77
The goal of nova-operator is to manage custom resource that define a nova control plane (CRD).
88
Nova operator continuously monitors the state of Nova CR and takes actions to ensure that the desired state is applied and reflected in nova pods. These pods run actual nova services, nova-operators ensure they are deployed, scaled, and configured correctly.
9-
**Note:** Nova CR is created by openstack-operator as per user intial deployment.
9+
**Note:** Nova CR is created by openstack-operator as per user initial deployment.
1010

1111
## Description
1212

1313
This operator is built using the operator-sdk framework to provide day one and day two
14-
lifecycle managment of the OpenStack nova service on an OpenShift cluster.
14+
lifecycle management of the OpenStack nova service on an OpenShift cluster.
1515

1616
## Getting Started
1717

@@ -30,7 +30,7 @@ pre-commit is optional but recommend to ensure good git hygiene.
3030
sudo dnf install -y golang
3131
```
3232

33-
#### installing in a virutal env
33+
#### installing in a virtual env
3434

3535
```sh
3636
python3 -m venv .venv
@@ -93,7 +93,7 @@ trim trailing whitespace.................................................Passed
9393
9494
### Running kuttl tests
9595
96-
Kuttl testing requires some inital setup on the host to enable running them.
96+
Kuttl testing requires some initial setup on the host to enable running them.
9797
first the kuttl oc/kubectl plugin need to be installed, that is done via using
9898
the krew plugin manager. kuttl testing in this repo will never install or modify
9999
operators in the test cloud. that means that you can run them in the openshift
@@ -143,7 +143,7 @@ cd ..
143143
make openstack
144144
```
145145
note: we will use the `crc-csi-hostpath-provisioner` storage class so "make crc_storage"
146-
is not required but it wont break anything either.
146+
is not required but it won't break anything either.
147147

148148
4. prepare kuttl deps
149149

api/bases/nova.openstack.org_novaapis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ spec:
503503
ObservedGeneration - the most recent generation observed for this
504504
service. If the observed generation is less than the spec generation,
505505
then the controller has not processed the latest changes injected by
506-
the opentack-operator in the top-level CR (e.g. the ContainerImage)
506+
the openstack-operator in the top-level CR (e.g. the ContainerImage)
507507
format: int64
508508
type: integer
509509
readyCount:

api/bases/nova.openstack.org_novacells.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ spec:
11101110
ObservedGeneration - the most recent generation observed for this
11111111
service. If the observed generation is less than the spec generation,
11121112
then the controller has not processed the latest changes injected by
1113-
the opentack-operator in the top-level CR (e.g. the ContainerImage)
1113+
the openstack-operator in the top-level CR (e.g. the ContainerImage)
11141114
format: int64
11151115
type: integer
11161116
type: object

api/bases/nova.openstack.org_novacomputes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ spec:
287287
ObservedGeneration - the most recent generation observed for this
288288
service. If the observed generation is less than the spec generation,
289289
then the controller has not processed the latest changes injected by
290-
the opentack-operator in the top-level CR (e.g. the ContainerImage)
290+
the openstack-operator in the top-level CR (e.g. the ContainerImage)
291291
format: int64
292292
type: integer
293293
readyCount:

api/bases/nova.openstack.org_novaconductors.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ spec:
329329
ObservedGeneration - the most recent generation observed for this
330330
service. If the observed generation is less than the spec generation,
331331
then the controller has not processed the latest changes injected by
332-
the opentack-operator in the top-level CR (e.g. the ContainerImage)
332+
the openstack-operator in the top-level CR (e.g. the ContainerImage)
333333
format: int64
334334
type: integer
335335
readyCount:

0 commit comments

Comments
 (0)