From 5105680fb7a4d729270e8a2db433cd04f5dcad13 Mon Sep 17 00:00:00 2001 From: eveneast Date: Mon, 15 Apr 2024 15:17:44 +0800 Subject: [PATCH] Fix some typos in comments Signed-off-by: eveneast --- charts/README.md | 16 ++++++++-------- client/dtmcli/dtmimp/types.go | 2 +- client/workflow/workflow.go | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/charts/README.md b/charts/README.md index 2af186327..f143804f4 100644 --- a/charts/README.md +++ b/charts/README.md @@ -42,12 +42,12 @@ helm delete -n dtm-system dtm ### Ingress parameters -| Key | Description | Value | -|--------------------------------|----------------------------------------------------------------------------------|---------------------| -| `ingress.enabled` | Enable ingress record generation for DTM | `false` | -| `ingress.className` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `"nginx"` | +| Key | Description | Value | +|--------------------------------|-------------------------------------------------------------------------------|---------------------| +| `ingress.enabled` | Enable ingress record generation for DTM | `false` | +| `ingress.className` | IngressClass that will be used to implement the Ingress (Kubernetes 1.18+) | `"nginx"` | | `ingress.annotations` | To enable certificate auto generation, place here your cert-manager annotations. | `{}` | -| `ingress.hosts.host` | Default host for the ingress record. | `"your-domain.com"` | -| `ingress.hosts.paths.path` | Default path for the ingress record | `"/"` | -| `ingress.hosts.paths.pathType` | Ingress path type | `"Prefix"` | -| `ingress.tls` | Enable TLS configuration for the host defined at ingress.hostname parameter | `[]` | +| `ingress.hosts.host` | Default host for the ingress record. | `"your-domain.com"` | +| `ingress.hosts.paths.path` | Default path for the ingress record | `"/"` | +| `ingress.hosts.paths.pathType` | Ingress path type | `"Prefix"` | +| `ingress.tls` | Enable TLS configuration for the host defined at ingress.hostname parameter | `[]` | diff --git a/client/dtmcli/dtmimp/types.go b/client/dtmcli/dtmimp/types.go index a889d5f31..901431bc9 100644 --- a/client/dtmcli/dtmimp/types.go +++ b/client/dtmcli/dtmimp/types.go @@ -8,7 +8,7 @@ package dtmimp import "database/sql" -// DB inteface of dtmcli db +// DB interface of dtmcli db type DB interface { Exec(query string, args ...interface{}) (sql.Result, error) QueryRow(query string, args ...interface{}) *sql.Row diff --git a/client/workflow/workflow.go b/client/workflow/workflow.go index 2695d862f..6701f58af 100644 --- a/client/workflow/workflow.go +++ b/client/workflow/workflow.go @@ -61,20 +61,20 @@ func ExecuteCtx(ctx context.Context, name string, gid string, data []byte) ([]by } // Execute is the same as ExecuteCtx, but with context.Background -// Deprecated: use ExecuteCtx instaead +// Deprecated: use ExecuteCtx instead func Execute(name string, gid string, data []byte) error { _, err := ExecuteCtx(context.Background(), name, gid, data) return err } // Execute2 is the same as Execute, but workflow func can return result -// Deprecated: use ExecuteCtx instaead +// Deprecated: use ExecuteCtx instead func Execute2(name string, gid string, data []byte) ([]byte, error) { return ExecuteCtx(context.Background(), name, gid, data) } // ExecuteByQS is like Execute, but name and gid will be obtained from qs -// Deprecated: use ExecuteCtx instaead +// Deprecated: use ExecuteCtx instead func ExecuteByQS(qs url.Values, body []byte) error { name := qs.Get("op") gid := qs.Get("gid")