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 e23d8dcd
authored
Dec 28, 2023
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update1
1 parent
03962050
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
2 deletions
README.md
schema.yaml
variables.tf
README.md
View file @
e23d8dc
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
| 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 |
...
...
schema.yaml
View file @
e23d8dc
...
@@ -14,12 +14,14 @@ components:
...
@@ -14,12 +14,14 @@ components:
type
:
string
type
:
string
description
:
Docker image name
description
:
Docker image name
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
1
order
:
1
domain_name
:
domain_name
:
title
:
Domain Name
title
:
Domain Name
type
:
string
type
:
string
description
:
域名
description
:
域名
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
2
order
:
2
name
:
name
:
title
:
Name
title
:
Name
...
@@ -28,6 +30,7 @@ components:
...
@@ -28,6 +30,7 @@ components:
default
:
"
"
default
:
"
"
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
3
order
:
3
port
:
port
:
title
:
Port
title
:
Port
...
@@ -36,6 +39,7 @@ components:
...
@@ -36,6 +39,7 @@ components:
default
:
"
7777"
default
:
"
7777"
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
4
order
:
4
env
:
env
:
title
:
Env
title
:
Env
...
@@ -47,6 +51,7 @@ components:
...
@@ -47,6 +51,7 @@ components:
type
:
string
type
:
string
x-walrus-ui
:
x-walrus-ui
:
colSpan
:
12
colSpan
:
12
group
:
Basic
order
:
5
order
:
5
replicas
:
replicas
:
title
:
Replicas
title
:
Replicas
...
@@ -55,6 +60,7 @@ components:
...
@@ -55,6 +60,7 @@ components:
default
:
1
default
:
1
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
6
order
:
6
request_cpu
:
request_cpu
:
title
:
Request Cpu
title
:
Request Cpu
...
@@ -63,6 +69,7 @@ components:
...
@@ -63,6 +69,7 @@ components:
default
:
"
0.1"
default
:
"
0.1"
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
7
order
:
7
request_memory
:
request_memory
:
title
:
Request Memory
title
:
Request Memory
...
@@ -71,6 +78,7 @@ components:
...
@@ -71,6 +78,7 @@ components:
default
:
128Mi
default
:
128Mi
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
8
order
:
8
limit_cpu
:
limit_cpu
:
title
:
Limit Cpu
title
:
Limit Cpu
...
@@ -79,6 +87,7 @@ components:
...
@@ -79,6 +87,7 @@ components:
default
:
"
0.5"
default
:
"
0.5"
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
9
order
:
9
limit_memory
:
limit_memory
:
title
:
Limit Memory
title
:
Limit Memory
...
@@ -87,6 +96,7 @@ components:
...
@@ -87,6 +96,7 @@ components:
default
:
128Mi
default
:
128Mi
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
10
order
:
10
probe_http_port
:
probe_http_port
:
title
:
Probe Http Port
title
:
Probe Http Port
...
@@ -95,6 +105,7 @@ components:
...
@@ -95,6 +105,7 @@ components:
default
:
"
7777"
default
:
"
7777"
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
11
order
:
11
probe_http_path
:
probe_http_path
:
title
:
Probe Http Path
title
:
Probe Http Path
...
@@ -103,6 +114,7 @@ components:
...
@@ -103,6 +114,7 @@ components:
default
:
/
default
:
/
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
12
order
:
12
restart_policy
:
restart_policy
:
title
:
Restart Policy
title
:
Restart Policy
...
@@ -112,6 +124,7 @@ components:
...
@@ -112,6 +124,7 @@ components:
default
:
Always
default
:
Always
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
13
order
:
13
path_type
:
path_type
:
title
:
Path Type
title
:
Path Type
...
@@ -120,6 +133,7 @@ components:
...
@@ -120,6 +133,7 @@ components:
default
:
ImplementationSpecific
default
:
ImplementationSpecific
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
14
order
:
14
path
:
path
:
title
:
Path
title
:
Path
...
@@ -128,6 +142,7 @@ components:
...
@@ -128,6 +142,7 @@ components:
default
:
/
default
:
/
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
15
order
:
15
walrus_metadata_service_name
:
walrus_metadata_service_name
:
title
:
Walrus Metadata Service Name
title
:
Walrus Metadata Service Name
...
@@ -136,6 +151,7 @@ components:
...
@@ -136,6 +151,7 @@ components:
default
:
"
"
default
:
"
"
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
16
order
:
16
walrus_metadata_namespace_name
:
walrus_metadata_namespace_name
:
title
:
Walrus Metadata Namespace Name
title
:
Walrus Metadata Namespace Name
...
@@ -144,4 +160,38 @@ components:
...
@@ -144,4 +160,38 @@ components:
default
:
"
"
default
:
"
"
nullable
:
true
nullable
:
true
x-walrus-ui
:
x-walrus-ui
:
group
:
Basic
order
:
17
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
x-walrus-ui
:
groupOrder
:
-
Basic
variables.tf
View file @
e23d8dc
...
@@ -6,7 +6,7 @@ variable "image" {
...
@@ -6,7 +6,7 @@ variable "image" {
}
}
# @label "
域名名字
"
# @label "
domain name
"
# @group "Basic"
# @group "Basic"
variable "domain_name" {
variable "domain_name" {
type = string
type = string
...
@@ -104,7 +104,7 @@ variable "probe_http_path" {
...
@@ -104,7 +104,7 @@ variable "probe_http_path" {
}
}
# @label "
重启策略
"
# @label "
restart police
"
# @group "Advanced"
# @group "Advanced"
variable "restart_policy" {
variable "restart_policy" {
type = string
type = string
...
@@ -143,3 +143,26 @@ variable "walrus_metadata_namespace_name" {
...
@@ -143,3 +143,26 @@ variable "walrus_metadata_namespace_name" {
description = "Walrus metadata namespace name."
description = "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 = {}
}
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