Commit 2f3ba404 by chenxx

change ui

1 parent 92449d3e
...@@ -28,15 +28,14 @@ ...@@ -28,15 +28,14 @@
| Name | Description | Type | Default | Required | | Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:| |------|-------------|------|---------|:--------:|
| <a name="input_context"></a> [context](#input\_context) | Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.<br><br>Examples:<pre>context:<br> project:<br> name: string<br> id: string<br> environment:<br> name: string<br> id: string<br> resource:<br> name: string<br> id: string</pre> | `map(any)` | `{}` | no |
| <a name="input_domain_name"></a> [domain\_name](#input\_domain\_name) | 域名 | `string` | n/a | yes | | <a name="input_domain_name"></a> [domain\_name](#input\_domain\_name) | 域名 | `string` | n/a | yes |
| <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_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_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 |
| <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` | n/a | yes |
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace to deploy. Auto-generated if empty. | `string` | `""` | no | | <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace to deploy. 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` | n/a | yes |
| <a name="input_path_type"></a> [path\_type](#input\_path\_type) | Path type for ingress rule | `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 |
......
...@@ -16,18 +16,10 @@ components: ...@@ -16,18 +16,10 @@ components:
x-walrus-ui: x-walrus-ui:
group: 基础 group: 基础
order: 1 order: 1
domain_name:
title: Domain Name
type: string
description: 域名
x-walrus-ui:
group: 基础
order: 2
name: name:
title: Name title: Name
type: string type: string
description: Name of the deployment resource. Auto-generated if empty. description: Name of the deployment resource. Auto-generated if empty.
default: ""
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: 基础 group: 基础
...@@ -39,7 +31,7 @@ components: ...@@ -39,7 +31,7 @@ components:
default: "7777" default: "7777"
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: 基础 group: 高级
order: 4 order: 4
env: env:
title: Env title: Env
...@@ -51,7 +43,7 @@ components: ...@@ -51,7 +43,7 @@ components:
type: string type: string
x-walrus-ui: x-walrus-ui:
colSpan: 12 colSpan: 12
group: 基础 group: 高级
order: 5 order: 5
replicas: replicas:
title: Replicas title: Replicas
...@@ -133,7 +125,7 @@ components: ...@@ -133,7 +125,7 @@ components:
default: ImplementationSpecific default: ImplementationSpecific
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: 高级 group: ingress
order: 14 order: 14
path: path:
title: Path title: Path
...@@ -142,8 +134,15 @@ components: ...@@ -142,8 +134,15 @@ components:
default: / default: /
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: 基础 group: ingress
order: 15 order: 15
domain_name:
title: Domain Name
type: string
description: 域名
x-walrus-ui:
group: ingress
order: 2
namespace: namespace:
title: Namespace title: Namespace
type: string type: string
...@@ -160,7 +159,7 @@ components: ...@@ -160,7 +159,7 @@ components:
default: "" default: ""
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: 基础 group: 高级
hidden: true hidden: true
order: 16 order: 16
walrus_metadata_namespace_name: walrus_metadata_namespace_name:
...@@ -170,41 +169,13 @@ components: ...@@ -170,41 +169,13 @@ components:
default: "" default: ""
nullable: true nullable: true
x-walrus-ui: x-walrus-ui:
group: 基础 group: 高级
hidden: true hidden: true
order: 17 order: 17
context: null: null
title: Context
type: object
description: |
Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.
Examples:
```
context:
project:
name: string
id: string
environment:
name: string
id: string
resource:
name: string
id: string
```
default: {}
nullable: true
additionalProperties:
type: object
x-walrus-ui:
colSpan: 12
x-walrus-ui:
colSpan: 12
group: Basic
hidden: true
order: 18
x-walrus-ui: x-walrus-ui:
groupOrder: groupOrder:
- 基础 - 基础
- 高级 - 高级
- 资源配额 - 资源配额
- ingress
...@@ -5,20 +5,11 @@ variable "image" { ...@@ -5,20 +5,11 @@ variable "image" {
description = "Docker image name" description = "Docker image name"
} }
# @label "部署名字(Deployment name)"
# @label "domain name"
# @group "Basic"
variable "domain_name" {
type = string
description = "域名"
}
# @label "Deployment Name"
# @group "Basic" # @group "Basic"
variable "name" { variable "name" {
type = string type = string
description = "Name of the deployment resource. Auto-generated if empty." description = "Name of the deployment resource. Auto-generated if empty."
default = ""
} }
...@@ -50,7 +41,7 @@ variable "replicas" { ...@@ -50,7 +41,7 @@ variable "replicas" {
# @group "Resources" # @group "Resources"
# @options ["0.2","0.3", "0.5","1", "2"] # @options ["0.2","0.3", "0.5","1", "2", "3"]
# @label "CPU Request" # @label "CPU Request"
variable "request_cpu" { variable "request_cpu" {
type = string type = string
...@@ -58,7 +49,7 @@ variable "request_cpu" { ...@@ -58,7 +49,7 @@ variable "request_cpu" {
default = "0.1" default = "0.1"
} }
# @group "Resources" # @group "Resources"
# @options ["128Mi","512Mi", "1G"] # @options ["128Mi","512Mi", "1G", "2Gi"]
# @label "Memory Request" # @label "Memory Request"
variable "request_memory" { variable "request_memory" {
type = string type = string
...@@ -116,6 +107,7 @@ variable "restart_policy" { ...@@ -116,6 +107,7 @@ variable "restart_policy" {
# @label "path_type" # @label "path_type"
# @options ["ImplementationSpecific","Exact","Prefix"] # @options ["ImplementationSpecific","Exact","Prefix"]
# @group "ingress" # @group "ingress"
# @showif "ingress=true"
variable "path_type" { variable "path_type" {
type = string type = string
description = "Path type for ingress rule" description = "Path type for ingress rule"
...@@ -124,10 +116,18 @@ variable "path_type" { ...@@ -124,10 +116,18 @@ variable "path_type" {
# @label "path" # @label "path"
# @group "ingress" # @group "ingress"
# @showif "ingress=true"
variable "path" { variable "path" {
type = string type = string
description = "访问路径" description = "访问路径"
default = "/" }
# @label "domain name"
# @group "Basic"
# @showif "ingress=true"
variable "domain_name" {
type = string
description = "域名"
} }
# @label "Namespace" # @label "Namespace"
...@@ -152,25 +152,3 @@ variable "walrus_metadata_namespace_name" { ...@@ -152,25 +152,3 @@ variable "walrus_metadata_namespace_name" {
default = "" default = ""
} }
# @hidden
variable "context" {
description = <<-EOF
Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.
Examples:
```
context:
project:
name: string
id: string
environment:
name: string
id: string
resource:
name: string
id: string
```
EOF
type = map(any)
default = {}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!