Commit 2e84fd33 by chenxx

aa

1 parent 1f01b25d
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
| <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 the container items to deploy.<br><br>Examples:<pre>0.2/0.3/0.5/1/2</pre> | `string` | `"0.1"` | no | | <a name="input_request_cpu"></a> [request\_cpu](#input\_request\_cpu) | Specify request\_cpu value.<br>Examples:<pre>可选值 0.2/0.3/0.5/1/2</pre> | `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 |
......
...@@ -50,16 +50,19 @@ variable "replicas" { ...@@ -50,16 +50,19 @@ variable "replicas" {
variable "request_cpu" { variable "request_cpu" {
description = <<-EOF description = <<-EOF
Specify the container items to deploy. Specify request_cpu value.
Examples: Examples:
``` ```
0.2/0.3/0.5/1/2 可选值 0.2/0.3/0.5/1/2
``` ```
EOF EOF
type = string type = string
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"] # @options ["128Mi","512Mi", "1G"]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!