Skip to content

Commit 399c143

Browse files
authored
Add typos linter (#304)
* Add typos linter * Remove unnecessary exceptions
1 parent 6734652 commit 399c143

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.github/workflows/pre-main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
SHELLCHECK_OPTS: --external-sources
4040
with:
4141
ignore_names: mo
42+
- uses: crate-ci/typos@master
4243
- uses: ibiqlik/action-yamllint@v3
4344
with:
4445
config_data: |

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ rebuild-cluster: delete-cluster
5353
delete-cluster:
5454
./scripts/delete-k8s-cluster.sh
5555

56-
# Launchs Vagrant env
56+
# Launches Vagrant env.
5757
vagrant-build:
5858
mkdir -p config/vagrant/kubeconfig
5959
vagrant plugin install vagrant-reload

_typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[default.extend-words]
2+
hel = "hel"
3+
OT = "OT"

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Image in this pod has a pull policy of 'Always' which is incorrect.
5757

5858
Creates a pod without a terminationGracePeriod set correctly.
5959

60-
* [pod-high-availablility](examples/lifecycle/highAvailability.yaml) - [Catalog Link](https://github.com/test-network-function/test-network-function/blob/main/CATALOG.md#pod-high-availability)
60+
* [pod-high-availability](examples/lifecycle/highAvailability.yaml) - [Catalog Link](https://github.com/test-network-function/test-network-function/blob/main/CATALOG.md#pod-high-availability)
6161

6262
Creates a deployment with a replica count of 2 but with no pod anti affinity rules.
6363

scripts/create-operator-bundle.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ operator-sdk init --domain "$REGISTRY_NAME" --plugins helm
1919
operator-sdk create api --group cnftest --version v0 --kind Nginx
2020

2121
# Logging registry before using
22-
${CONTAINER_CLIENT} logs registry
22+
${CONTAINER_CLIENT} logs registry
2323

2424
# Build and push the operator image.
2525
make docker-build docker-push IMG="$OPERATOR_IMAGE_FULL_NAME"
2626

2727
# Configure the operator manifest
2828
mkdir -p config/manifests/bases
2929

30-
# Create configration
31-
cat > config/manifests/bases/nginx-operator.clusterserviceversion.yaml <<-'EOF'
30+
# Create configuration.
31+
cat >config/manifests/bases/nginx-operator.clusterserviceversion.yaml <<-'EOF'
3232
apiVersion: operators.coreos.com/v1alpha1
3333
kind: ClusterServiceVersion
3434
metadata:

0 commit comments

Comments
 (0)