Commit 2e2302f6 by chenxx

change variable

1 parent 3f7d97e8
...@@ -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> "test"<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) host aliases 手动配置域名到hosts | `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 |
......
...@@ -91,9 +91,7 @@ module "ingress" { ...@@ -91,9 +91,7 @@ module "ingress" {
rule = [ rule = [
{ {
domain = var.ingress_switch.domain_name domain = var.ingress_switch.domain_name
external_port = var.ports[ external_port = var.ports[0] // Service port
0
] // Service port
path = var.ingress_switch.path path = var.ingress_switch.path
path_type = var.ingress_switch.path_type path_type = var.ingress_switch.path_type
} }
......
...@@ -180,9 +180,10 @@ components: ...@@ -180,9 +180,10 @@ components:
args: args:
title: Args title: Args
type: string type: string
description: 属于那个环境,例子:dev,test,beta,release, gh_release, gh_beta, testcdp, testscrm description: 属于那个环境,例子:dev,test,beta,release, gh_release, gh_beta, testcdp,
testscrm
default: default:
- test - test
enum: enum:
- dev - dev
- test - test
......
...@@ -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 = ["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!