Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
lighttpd_standard_webservice
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2f3ba404
authored
Jan 09, 2024
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
change ui
1 parent
92449d3e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
82 deletions
README.md
schema.yaml
variables.tf
README.md
View file @
2f3ba40
...
...
@@ -28,15 +28,14 @@
| 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_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_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_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_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_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 |
...
...
schema.yaml
View file @
2f3ba40
...
...
@@ -16,18 +16,10 @@ components:
x-walrus-ui
:
group
:
基础
order
:
1
domain_name
:
title
:
Domain Name
type
:
string
description
:
域名
x-walrus-ui
:
group
:
基础
order
:
2
name
:
title
:
Name
type
:
string
description
:
Name of the deployment resource. Auto-generated if empty.
default
:
"
"
nullable
:
true
x-walrus-ui
:
group
:
基础
...
...
@@ -39,7 +31,7 @@ components:
default
:
"
7777"
nullable
:
true
x-walrus-ui
:
group
:
基础
group
:
高级
order
:
4
env
:
title
:
Env
...
...
@@ -51,7 +43,7 @@ components:
type
:
string
x-walrus-ui
:
colSpan
:
12
group
:
基础
group
:
高级
order
:
5
replicas
:
title
:
Replicas
...
...
@@ -133,7 +125,7 @@ components:
default
:
ImplementationSpecific
nullable
:
true
x-walrus-ui
:
group
:
高级
group
:
ingress
order
:
14
path
:
title
:
Path
...
...
@@ -142,8 +134,15 @@ components:
default
:
/
nullable
:
true
x-walrus-ui
:
group
:
基础
group
:
ingress
order
:
15
domain_name
:
title
:
Domain Name
type
:
string
description
:
域名
x-walrus-ui
:
group
:
ingress
order
:
2
namespace
:
title
:
Namespace
type
:
string
...
...
@@ -160,7 +159,7 @@ components:
default
:
"
"
nullable
:
true
x-walrus-ui
:
group
:
基础
group
:
高级
hidden
:
true
order
:
16
walrus_metadata_namespace_name
:
...
...
@@ -170,41 +169,13 @@ components:
default
:
"
"
nullable
:
true
x-walrus-ui
:
group
:
基础
group
:
高级
hidden
:
true
order
:
17
context
:
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
null
:
null
x-walrus-ui
:
groupOrder
:
-
基础
-
高级
-
资源配额
-
ingress
variables.tf
View file @
2f3ba40
...
...
@@ -5,20 +5,11 @@ variable "image" {
description = "Docker image name"
}
# @label "domain name"
# @group "Basic"
variable "domain_name" {
type = string
description = "域名"
}
# @label "Deployment Name"
# @label "部署名字(Deployment name)"
# @group "Basic"
variable "name" {
type = string
description = "Name of the deployment resource. Auto-generated if empty."
default = ""
}
...
...
@@ -50,7 +41,7 @@ variable "replicas" {
# @group "Resources"
# @options ["0.2","0.3", "0.5","1", "2"]
# @options ["0.2","0.3", "0.5","1", "2"
, "3"
]
# @label "CPU Request"
variable "request_cpu" {
type = string
...
...
@@ -58,7 +49,7 @@ variable "request_cpu" {
default = "0.1"
}
# @group "Resources"
# @options ["128Mi","512Mi", "1G"]
# @options ["128Mi","512Mi", "1G"
, "2Gi"
]
# @label "Memory Request"
variable "request_memory" {
type = string
...
...
@@ -116,6 +107,7 @@ variable "restart_policy" {
# @label "path_type"
# @options ["ImplementationSpecific","Exact","Prefix"]
# @group "ingress"
# @showif "ingress=true"
variable "path_type" {
type = string
description = "Path type for ingress rule"
...
...
@@ -124,10 +116,18 @@ variable "path_type" {
# @label "path"
# @group "ingress"
# @showif "ingress=true"
variable "path" {
type = string
description = "访问路径"
default = "/"
}
# @label "domain name"
# @group "Basic"
# @showif "ingress=true"
variable "domain_name" {
type = string
description = "域名"
}
# @label "Namespace"
...
...
@@ -152,25 +152,3 @@ variable "walrus_metadata_namespace_name" {
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 = {}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment