Commit 03962050 by chenxx

update3

1 parent b96e0858
...@@ -35,12 +35,12 @@ ...@@ -35,12 +35,12 @@
| <a name="input_limit_memory"></a> [limit\_memory](#input\_limit\_memory) | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"128Mi"` | no | | <a name="input_limit_memory"></a> [limit\_memory](#input\_limit\_memory) | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | `string` | `"128Mi"` | no |
| <a name="input_name"></a> [name](#input\_name) | Name of the deployment resource. Auto-generated if empty. | `string` | `""` | no | | <a name="input_name"></a> [name](#input\_name) | Name of the deployment resource. Auto-generated if empty. | `string` | `""` | no |
| <a name="input_path"></a> [path](#input\_path) | 访问路径 | `string` | `"/"` | no | | <a name="input_path"></a> [path](#input\_path) | 访问路径 | `string` | `"/"` | no |
| <a name="input_path_type"></a> [path\_type](#input\_path\_type) | Path type for ingress rule ImplementationSpecific Exact Prefix | `string` | `"ImplementationSpecific"` | no | | <a name="input_path_type"></a> [path\_type](#input\_path\_type) | Path type for ingress rule | `string` | `"ImplementationSpecific"` | no |
| <a name="input_port"></a> [port](#input\_port) | Service ports to expose | `string` | `"7777"` | no | | <a name="input_port"></a> [port](#input\_port) | Service ports to expose | `string` | `"7777"` | no |
| <a name="input_probe_http_path"></a> [probe\_http\_path](#input\_probe\_http\_path) | (Optional)http path for probe | `string` | `"/"` | no | | <a name="input_probe_http_path"></a> [probe\_http\_path](#input\_probe\_http\_path) | (Optional)http path for probe | `string` | `"/"` | no |
| <a name="input_probe_http_port"></a> [probe\_http\_port](#input\_probe\_http\_port) | (Optional)http port for probe | `string` | `"7777"` | no | | <a name="input_probe_http_port"></a> [probe\_http\_port](#input\_probe\_http\_port) | (Optional)http port for probe | `string` | `"7777"` | 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) | Specify request\_cpu value.<br>Examples:<pre>可选值</pre> | `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 |
| <a name="input_restart_policy"></a> [restart\_policy](#input\_restart\_policy) | Restart policy for all containers within the pod. One of Always, OnFailure, Never | `string` | `"Always"` | no | | <a name="input_restart_policy"></a> [restart\_policy](#input\_restart\_policy) | Restart policy for all containers within the pod. One of Always, OnFailure, Never | `string` | `"Always"` | no |
| <a name="input_walrus_metadata_namespace_name"></a> [walrus\_metadata\_namespace\_name](#input\_walrus\_metadata\_namespace\_name) | Walrus metadata namespace name. | `string` | `""` | no | | <a name="input_walrus_metadata_namespace_name"></a> [walrus\_metadata\_namespace\_name](#input\_walrus\_metadata\_namespace\_name) | Walrus metadata namespace name. | `string` | `""` | no |
......
...@@ -40,7 +40,7 @@ components: ...@@ -40,7 +40,7 @@ components:
env: env:
title: Env title: Env
type: object type: object
description: 'Name and value pairs to set as the environment variables ' description: Name and value pairs to set as the environment variables
default: {} default: {}
nullable: true nullable: true
additionalProperties: additionalProperties:
...@@ -59,12 +59,7 @@ components: ...@@ -59,12 +59,7 @@ components:
request_cpu: request_cpu:
title: Request Cpu title: Request Cpu
type: string type: string
description: | description: CPU request. e.g. 0.5, 1, 2
Specify request_cpu value.
Examples:
```
可选值
```
default: "0.1" default: "0.1"
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
...@@ -121,7 +116,7 @@ components: ...@@ -121,7 +116,7 @@ components:
path_type: path_type:
title: Path Type title: Path Type
type: string type: string
description: Path type for ingress rule ImplementationSpecific Exact Prefix description: Path type for ingress rule
default: ImplementationSpecific default: ImplementationSpecific
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
......
...@@ -30,10 +30,11 @@ variable "port" { ...@@ -30,10 +30,11 @@ variable "port" {
default = "7777" default = "7777"
} }
# @label "Environment Variables" # @label "Environment Variables"
# @options ["dev", "test", "release", "beta"]
# @group "Basic" # @group "Basic"
variable "env" { variable "env" {
type = map(string) type = map(string)
description = "Name and value pairs to set as the environment variables " description = "Name and value pairs to set as the environment variables"
default = {} default = {}
} }
# @label "Replicas" # @label "Replicas"
...@@ -43,26 +44,21 @@ variable "replicas" { ...@@ -43,26 +44,21 @@ variable "replicas" {
description = "Replicas to deploy" description = "Replicas to deploy"
default = 1 default = 1
} }
#
#Resources
#
# @group "Resources" # @group "Resources"
# @options ["0.2","0.3", "0.5","1", "2"]
# @label "CPU Request" # @label "CPU Request"
variable "request_cpu" { variable "request_cpu" {
description = <<-EOF
Specify request_cpu value.
Examples:
```
可选值
```
EOF
type = string type = string
description = "CPU request. e.g. 0.5, 1, 2"
default = "0.1" default = "0.1"
validation {
condition = var.request_cpu == "" || contains(["0.2", "0.3", "0.4", "0.5", "1", "2"], var.request_cpu)
error_message = "Invalid value"
}
} }
# @group "Resources" # @group "Resources"
# @options ["128Mi","512Mi", "1G"]
# @label "Memory Request" # @label "Memory Request"
variable "request_memory" { variable "request_memory" {
type = string type = string
...@@ -70,6 +66,7 @@ variable "request_memory" { ...@@ -70,6 +66,7 @@ variable "request_memory" {
default = "128Mi" default = "128Mi"
} }
# @group "Resources" # @group "Resources"
# @options ["0.2","0.3", "0.5","1", "2"]
# @label "CPU Limit" # @label "CPU Limit"
variable "limit_cpu" { variable "limit_cpu" {
type = string type = string
...@@ -77,6 +74,7 @@ variable "limit_cpu" { ...@@ -77,6 +74,7 @@ variable "limit_cpu" {
default = "0.5" default = "0.5"
} }
# @group "Resources" # @group "Resources"
# @options ["128Mi","512Mi", "1Gi","2Gi", "3Gi"]
# @label "Memory Limit" # @label "Memory Limit"
variable "limit_memory" { variable "limit_memory" {
type = string type = string
...@@ -84,6 +82,9 @@ variable "limit_memory" { ...@@ -84,6 +82,9 @@ variable "limit_memory" {
default = "128Mi" default = "128Mi"
} }
#
#Advanced
#
# @label "probe_port" # @label "probe_port"
# @group "Advanced" # @group "Advanced"
...@@ -113,10 +114,11 @@ variable "restart_policy" { ...@@ -113,10 +114,11 @@ variable "restart_policy" {
# @label "path_type" # @label "path_type"
# @options ["ImplementationSpecific","Exact","Prefix"]
# @group "ingress" # @group "ingress"
variable "path_type" { variable "path_type" {
type = string type = string
description = "Path type for ingress rule ImplementationSpecific Exact Prefix" description = "Path type for ingress rule"
default = "ImplementationSpecific" default = "ImplementationSpecific"
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!