Browse Source
Merge pull request #500 from eveneast/main
Fix some typos in comments
pull/509/head
yedf2
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
12 additions and
12 deletions
-
charts/README.md
-
client/dtmcli/dtmimp/types.go
-
client/workflow/workflow.go
|
|
|
@ -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 | `[]` | |
|
|
|
|
|
|
|
@ -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 |
|
|
|
|
|
|
|
@ -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") |
|
|
|
|