Commit effa2da4 by chenxx

upate args

1 parent f33ab8a5
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
|------|-------------|------|---------|:--------:| |------|-------------|------|---------|:--------:|
| <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 | `string` | `"test"` | no | | <a name="input_args"></a> [args](#input\_args) | 属于那个环境,例子:dev,test,beta,release | `list(string)` | <pre>[<br> "test"<br>]</pre> | 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) host aliases 手动配置域名到hosts | `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 |
| <a name="input_ingress_switch"></a> [ingress\_switch](#input\_ingress\_switch) | choise ingress switch | <pre>object({<br> switch = optional(string)<br> path_type = optional(string)<br> path = optional(string)<br> domain_name = optional(string)<br> })</pre> | <pre>{<br> "domain_name": null,<br> "path": "/",<br> "path_type": "ImplementationSpecific",<br> "switch": "off"<br>}</pre> | no | | <a name="input_ingress_switch"></a> [ingress\_switch](#input\_ingress\_switch) | choise ingress switch | <pre>object({<br> switch = optional(string)<br> path_type = optional(string)<br> path = optional(string)<br> domain_name = optional(string)<br> })</pre> | <pre>{<br> "domain_name": null,<br> "path": "/",<br> "path_type": "ImplementationSpecific",<br> "switch": "off"<br>}</pre> | no |
| <a name="input_limit_cpu"></a> [limit\_cpu](#input\_limit\_cpu) | CPU limit. e.g. 0.5, 1, 2 | `string` | `"0.5"` | no | | <a name="input_limit_cpu"></a> [limit\_cpu](#input\_limit\_cpu) | CPU limit. e.g. 0.5, 1, 2 | `string` | `"0.5"` | no |
......
...@@ -50,7 +50,7 @@ module "deployment" { ...@@ -50,7 +50,7 @@ module "deployment" {
} }
] ]
#domian map #domian map to /etc/hosts
hosts = [ hosts = [
for host_list in var.hosts: for host_list in var.hosts:
{ {
......
...@@ -191,6 +191,8 @@ components: ...@@ -191,6 +191,8 @@ 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
......
...@@ -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 = string type = list(string)
description = "属于那个环境,例子:dev,test,beta,release" description = "属于那个环境,例子:dev,test,beta,release"
default = "test" 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!