From 7250ff5d8fd8572318e80e6bf9e5dbdd62ea6b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Tue, 13 Dec 2022 22:05:25 +0500 Subject: [PATCH] Fix typos (#167) * fix typo Valitating * fix typo User -> UserName in Database example --- controllers/dbinstance_controller.go | 2 +- docs/creatingdatabases.md | 2 +- docs/creatinginstances.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/dbinstance_controller.go b/controllers/dbinstance_controller.go index a116b5d4..428c002a 100644 --- a/controllers/dbinstance_controller.go +++ b/controllers/dbinstance_controller.go @@ -37,7 +37,7 @@ import ( ) var ( - dbInstancePhaseValidate = "Valitating" + dbInstancePhaseValidate = "Validating" dbInstancePhaseCreate = "Creating" dbInstancePhaseBroadcast = "Broadcasting" dbInstancePhaseProxyCreate = "ProxyCreating" diff --git a/docs/creatingdatabases.md b/docs/creatingdatabases.md index 41d178d8..f8c5f2c8 100644 --- a/docs/creatingdatabases.md +++ b/docs/creatingdatabases.md @@ -46,7 +46,7 @@ spec: cron: "0 0 * * *" secretsTemplates: CONNECTION_STRING: "jdbc:{{ .Protocol }}://{{ .UserName }}:{{ .Password }}@{{ .DatabaseHost }}:{{ .DatabasePort }}/{{ .DatabaseName }}" - PASSWORD_USER: "{{ .Password }}_{{ .User }}" + PASSWORD_USER: "{{ .Password }}_{{ .UserName }}" ``` With `secretsTemplates` you can add fields to the database secret that are composed by any string and by any of the following templated values: ```YAML diff --git a/docs/creatinginstances.md b/docs/creatinginstances.md index 68bf4087..9fbf9ace 100644 --- a/docs/creatinginstances.md +++ b/docs/creatinginstances.md @@ -163,7 +163,7 @@ Possible phases and meanings | Phase | Description | |------------------- |----------------------- | -| `Valitating` | Validate all the necessary fields provided in the resource spec | +| `Validating` | Validate all the necessary fields provided in the resource spec | | `Creating` | Create (only google type) or check if the database server is reachable | | `Broadcasting` | Trigger `Database` phase cycle if there was an update on `DbInstance` | | `ProxyCreating` | Creating Google Cloud Proxy `Deployment` and `Service` to be used as endpoint for connecting to the database (only google type) |