Commit 2bc3992b by chenxx

update 2

1 parent c9a6154a
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
|------|-------------|------|---------|:--------:| |------|-------------|------|---------|:--------:|
| <a name="input_app_log_path"></a> [app\_log\_path](#input\_app\_log\_path) | @label "应用日志路径" @group "Advanced" | `string` | `"/data/java_log"` | no | | <a name="input_app_log_path"></a> [app\_log\_path](#input\_app\_log\_path) | @label "应用日志路径" @group "Advanced" | `string` | `"/data/java_log"` | no |
| <a name="input_app_log_path_volume_name"></a> [app\_log\_path\_volume\_name](#input\_app\_log\_path\_volume\_name) | 应用日志挂载卷名,名字只能使用-,例: abc-22 abc-cc | `string` | `"app-log-path"` | no | | <a name="input_app_log_path_volume_name"></a> [app\_log\_path\_volume\_name](#input\_app\_log\_path\_volume\_name) | 应用日志挂载卷名,名字只能使用-,例: abc-22 abc-cc | `string` | `"app-log-path"` | no |
| <a name="input_args"></a> [args](#input\_args) | 属于那个环境,例子:dev,test,beta,release | `list(string)` | <pre>[<br> "release"<br>]</pre> | no | | <a name="input_args"></a> [args](#input\_args) | 属于那个环境,例子:dev,test,beta,release | `string` | `"test"` | no |
| <a name="input_env"></a> [env](#input\_env) | Name and value pairs to set as the environment variables | `map(string)` | `{}` | no | | <a name="input_env"></a> [env](#input\_env) | Name and value pairs to set as the environment variables | `map(string)` | `{}` | no |
| <a name="input_hosts"></a> [hosts](#input\_hosts) | (Optional) Add /etc/hosts records to pods | `list(object({ hostname = list(string), ip = string }))` | `[]` | no | | <a name="input_hosts"></a> [hosts](#input\_hosts) | (Optional) Add /etc/hosts records to pods | `list(object({ hostname = list(string), ip = string }))` | `[]` | no |
| <a name="input_image"></a> [image](#input\_image) | Docker image name | `string` | n/a | yes | | <a name="input_image"></a> [image](#input\_image) | Docker image name | `string` | n/a | yes |
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
| <a name="input_limit_memory"></a> [limit\_memory](#input\_limit\_memory) | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"512Mi"` | no | | <a name="input_limit_memory"></a> [limit\_memory](#input\_limit\_memory) | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"512Mi"` | no |
| <a name="input_name"></a> [name](#input\_name) | Name of the deployment resource. Auto-generated if empty. | `string` | n/a | yes | | <a name="input_name"></a> [name](#input\_name) | Name of the deployment resource. Auto-generated if empty. | `string` | n/a | yes |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace to deploy. Auto-generated if empty. | `string` | n/a | yes | | <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace to deploy. Auto-generated if empty. | `string` | n/a | yes |
| <a name="input_ports"></a> [ports](#input\_ports) | Service ports to expose | `list(number)` | <pre>[<br> "6666"<br>]</pre> | no | | <a name="input_ports"></a> [ports](#input\_ports) | Service ports to expose | `list(number)` | <pre>[<br> 6666<br>]</pre> | no |
| <a name="input_replicas"></a> [replicas](#input\_replicas) | Replicas to deploy | `number` | `1` | no | | <a name="input_replicas"></a> [replicas](#input\_replicas) | Replicas to deploy | `number` | `1` | no |
| <a name="input_request_cpu"></a> [request\_cpu](#input\_request\_cpu) | CPU request. e.g. 0.5, 1, 2 | `string` | `"0.1"` | no | | <a name="input_request_cpu"></a> [request\_cpu](#input\_request\_cpu) | CPU request. e.g. 0.5, 1, 2 | `string` | `"0.1"` | no |
| <a name="input_request_memory"></a> [request\_memory](#input\_request\_memory) | Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"128Mi"` | no | | <a name="input_request_memory"></a> [request\_memory](#input\_request\_memory) | Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"128Mi"` | no |
......
...@@ -37,13 +37,13 @@ components: ...@@ -37,13 +37,13 @@ components:
type: array type: array
description: Service ports to expose description: Service ports to expose
default: default:
- "6666" - 6666
items: items:
type: number type: number
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
colSpan: 12 colSpan: 12
group: Basic group: Advanced
order: 4 order: 4
env: env:
title: Env title: Env
...@@ -55,7 +55,7 @@ components: ...@@ -55,7 +55,7 @@ components:
type: string type: string
x-walrus-ui: x-walrus-ui:
colSpan: 12 colSpan: 12
group: Basic group: Advanced
order: 5 order: 5
replicas: replicas:
title: Replicas title: Replicas
...@@ -64,7 +64,7 @@ components: ...@@ -64,7 +64,7 @@ components:
default: 1 default: 1
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: Basic group: Advanced
order: 6 order: 6
request_cpu: request_cpu:
title: Request Cpu title: Request Cpu
...@@ -180,10 +180,9 @@ components: ...@@ -180,10 +180,9 @@ components:
order: 15 order: 15
args: args:
title: Args title: Args
type: array type: string
description: 属于那个环境,例子:dev,test,beta,release description: 属于那个环境,例子:dev,test,beta,release
default: default: test
- test
enum: enum:
- dev - dev
- test - test
...@@ -193,12 +192,10 @@ components: ...@@ -193,12 +192,10 @@ components:
- gh_beta - gh_beta
- testcdp - testcdp
- testscrm - testscrm
items:
type: string
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
colSpan: 12 colSpan: 12
group: Basic group: Advanced
order: 16 order: 16
ingress_switch: ingress_switch:
title: Ingress Switch title: Ingress Switch
...@@ -217,19 +214,25 @@ components: ...@@ -217,19 +214,25 @@ components:
type: string type: string
x-walrus-ui: x-walrus-ui:
order: 4 order: 4
showIf: switch=on
path: path:
nullable: true nullable: true
title: Path title: Path
type: string type: string
x-walrus-ui: x-walrus-ui:
order: 3 order: 3
showIf: switch=on
path_type: path_type:
nullable: true nullable: true
title: Path Type title: Path Type
type: string type: string
x-walrus-ui: x-walrus-ui:
order: 2 order: 2
showIf: switch=on
switch: switch:
enum:
- "off"
- "on"
nullable: true nullable: true
title: Switch title: Switch
type: string type: string
......
...@@ -24,7 +24,7 @@ variable "name" { ...@@ -24,7 +24,7 @@ variable "name" {
variable "ports" { variable "ports" {
type = list(number) type = list(number)
description = "Service ports to expose" description = "Service ports to expose"
default = ["6666"] default = [6666]
} }
# @label "Environment Variables" # @label "Environment Variables"
# @options ["dev", "test", "release", "beta"] # @options ["dev", "test", "release", "beta"]
...@@ -117,9 +117,9 @@ variable "restart_policy" { ...@@ -117,9 +117,9 @@ variable "restart_policy" {
# @options ["dev", "test", "beta", "release"] # @options ["dev", "test", "beta", "release"]
# @group "Advanced" # @group "Advanced"
variable "args" { variable "args" {
type = list(string) type = string
description = "属于那个环境,例子:dev,test,beta,release" description = "属于那个环境,例子:dev,test,beta,release"
default = ["release"] default = "test"
} }
# @label "chiose ingress switch on or off" # @label "chiose ingress switch on or off"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!