From 4bf772c7cd5b82f3b5ba7eae829f8e9923fd1e8d Mon Sep 17 00:00:00 2001 From: Timo Riski Date: Tue, 19 Dec 2023 10:59:18 +0200 Subject: [PATCH] chore(lint): fix `codespell` --- CHANGELOG.md | 2 +- charts/aiven-operator/values.yaml | 2 +- config/crd/bases/aiven.io_crd-all.gen.yaml | 2 +- controllers/basic_controller.go | 2 +- controllers/kafkaconnector_controller.go | 2 +- docs/docs/changelog.md | 2 +- docs/docs/contributing/resource-generation.md | 2 +- docs/docs/troubleshooting.md | 2 +- generators/userconfigs/generator_test_source.yml | 8 ++++---- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5383ac9f7..fc713a82f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -157,7 +157,7 @@ - Add `minumim`, `maximum` validations for `number` type - Move helm charts to the operator repository - Add helm charts generator -- Remove `ip_filter` backward compatability +- Remove `ip_filter` backward compatibility - Fix deletion errors omitted - Add service integration `clickhouseKafka.tables.data_format-property` enum `RawBLOB` value - Update OpenSearch `userConfig.opensearch.email_sender_username` validation pattern diff --git a/charts/aiven-operator/values.yaml b/charts/aiven-operator/values.yaml index 06c054afd..df0f03b31 100644 --- a/charts/aiven-operator/values.yaml +++ b/charts/aiven-operator/values.yaml @@ -31,7 +31,7 @@ webhooks: image: repository: aivenoy/aiven-operator pullPolicy: IfNotPresent - # default is .Chart.AppVersion but can be overriden here + # default is .Chart.AppVersion but can be overridden here tag: '' imagePullSecrets: [] diff --git a/config/crd/bases/aiven.io_crd-all.gen.yaml b/config/crd/bases/aiven.io_crd-all.gen.yaml index 7fd827694..f912d71fb 100644 --- a/config/crd/bases/aiven.io_crd-all.gen.yaml +++ b/config/crd/bases/aiven.io_crd-all.gen.yaml @@ -143,7 +143,7 @@ spec: minimum: 0 type: integer pattern: - description: Must consist of alpha-numeric characters, + description: Must consist of alphanumeric characters, dashes, underscores, dots and glob characters (* and ?) maxLength: 1024 diff --git a/controllers/basic_controller.go b/controllers/basic_controller.go index 534ace597..fe5772d72 100644 --- a/controllers/basic_controller.go +++ b/controllers/basic_controller.go @@ -346,7 +346,7 @@ func (i *instanceReconcilerHelper) finalize(ctx context.Context, o v1alpha1.Aive deletionPolicy := deletionPolicyDelete // Parse the annotations for the deletion policy. For simplicity, we only allow 'Orphan'. - // If set will skip the deletion of the remote object. Disable by removing the annoation. + // If set will skip the deletion of the remote object. Disable by removing the annotation. if p, ok := o.GetAnnotations()[deletionPolicyAnnotation]; ok { deletionPolicy = deletionPolicyOrphan if p != deletionPolicyOrphan { diff --git a/controllers/kafkaconnector_controller.go b/controllers/kafkaconnector_controller.go index bd86011f1..d091b243d 100644 --- a/controllers/kafkaconnector_controller.go +++ b/controllers/kafkaconnector_controller.go @@ -90,7 +90,7 @@ func (h KafkaConnectorHandler) createOrUpdate(ctx context.Context, avn *aiven.Cl return nil } -// buildConnectorConfig joins mandatory fields with additional conncetor specific config +// buildConnectorConfig joins mandatory fields with additional connector specific config func (h KafkaConnectorHandler) buildConnectorConfig(conn *v1alpha1.KafkaConnector) (aiven.KafkaConnectorConfig, error) { const ( configFieldConnectorName = "name" diff --git a/docs/docs/changelog.md b/docs/docs/changelog.md index 8d8baad64..c81f38934 100644 --- a/docs/docs/changelog.md +++ b/docs/docs/changelog.md @@ -152,7 +152,7 @@ - Add `minumim`, `maximum` validations for `number` type - Move helm charts to the operator repository - Add helm charts generator -- Remove `ip_filter` backward compatability +- Remove `ip_filter` backward compatibility - Fix deletion errors omitted - Add service integration `clickhouseKafka.tables.data_format-property` enum `RawBLOB` value - Update OpenSearch `userConfig.opensearch.email_sender_username` validation pattern diff --git a/docs/docs/contributing/resource-generation.md b/docs/docs/contributing/resource-generation.md index aa5876fcd..1f9079ead 100644 --- a/docs/docs/contributing/resource-generation.md +++ b/docs/docs/contributing/resource-generation.md @@ -14,7 +14,7 @@ When a new schema is issued on the API, a cron job fetches it, parses, patches, and saves in a shared library — [go-api-schemas][go-api-schemas]. When the library is updated, -the GitHub [dependabot](https://github.com/dependabot) creates PRs to the dependant repositories, +the GitHub [dependabot](https://github.com/dependabot) creates PRs to the dependent repositories, like Aiven Kubernetes Operator and Aiven Terraform Provider. Then the [`make generate`](#make-generate) command is called by GitHub action. diff --git a/docs/docs/troubleshooting.md b/docs/docs/troubleshooting.md index d78076b81..f9fdbbe3b 100644 --- a/docs/docs/troubleshooting.md +++ b/docs/docs/troubleshooting.md @@ -47,7 +47,7 @@ Use the following command to visualize all the logs from the operator. kubectl logs -n aiven-operator-system -l control-plane=controller-manager ``` -### Verifing the operator version +### Verifying the operator version ```shell kubectl get pod -n aiven-operator-system -l control-plane=controller-manager -o jsonpath="{.items[0].spec.containers[0].image}" diff --git a/generators/userconfigs/generator_test_source.yml b/generators/userconfigs/generator_test_source.yml index a090be1b6..0f8c20bd8 100644 --- a/generators/userconfigs/generator_test_source.yml +++ b/generators/userconfigs/generator_test_source.yml @@ -11,7 +11,7 @@ properties: max_length: 256 pattern: ^[a-z0-9-]+$ example: aws-eu-central-1 - user_error: Must consist of lower-case alpha-numeric characters or dashes + user_error: Must consist of lower-case alphanumeric characters or dashes max_items: 1 admin_password: title: Custom password for admin user. Defaults to random string. This must be @@ -22,7 +22,7 @@ properties: create_only: true pattern: ^[a-zA-Z0-9-_]+$ example: z66o9QXqKM - user_error: Must consist of alpha-numeric characters, underscores or dashes + user_error: Must consist of alphanumeric characters, underscores or dashes admin_username: title: Custom username for admin user. This must be set only when a new service is being created. @@ -31,7 +31,7 @@ properties: create_only: true pattern: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,63}$ example: avnadmin - user_error: Must consist of alpha-numeric characters, dots, underscores or dashes, + user_error: Must consist of alphanumeric characters, dots, underscores or dashes, may not start with dash or dot, max 64 characters backup_hour: title: The hour of day (in UTC) when backup for the service is started. New backup @@ -419,7 +419,7 @@ properties: max_length: 64 pattern: ^[_A-Za-z0-9][-._A-Za-z0-9]{0,63}$ example: myrolename - user_error: Must consist of alpha-numeric characters, dots, underscores or + user_error: Must consist of alphanumeric characters, dots, underscores or dashes, may not start with dash or dot, max 64 characters pg_stat_monitor.pgsm_enable_query_plan: title: pg_stat_monitor.pgsm_enable_query_plan