Browse Source

Fix some typos in comments

Signed-off-by: eveneast <qcqs@foxmail.com>
pull/500/head
eveneast 2 years ago
parent
commit
5105680fb7
  1. 16
      charts/README.md
  2. 2
      client/dtmcli/dtmimp/types.go
  3. 6
      client/workflow/workflow.go

16
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 | `[]` |

2
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

6
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")

Loading…
Cancel
Save