Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
terraform_module
/
scrm_standard_template
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 a61fe33f
authored
Feb 22, 2024
by
chenxx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
change args
1 parent
2e2302f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
main.tf
variables.tf
main.tf
View file @
a61fe33
...
@@ -25,7 +25,7 @@ module "deployment" {
...
@@ -25,7 +25,7 @@ module "deployment" {
image = var.image
image = var.image
replicas = var.replicas
replicas = var.replicas
restart_policy = var.restart_policy
restart_policy = var.restart_policy
args =
var.args
args =
[var.args]
resources = {
resources = {
request_cpu = var.request_cpu == "" ? null : var.request_cpu
request_cpu = var.request_cpu == "" ? null : var.request_cpu
limit_cpu = var.limit_cpu == "" ? null : var.limit_cpu
limit_cpu = var.limit_cpu == "" ? null : var.limit_cpu
...
...
variables.tf
View file @
a61fe33
...
@@ -117,7 +117,7 @@ variable "restart_policy" {
...
@@ -117,7 +117,7 @@ variable "restart_policy" {
# @options ["dev", "test", "beta", "release"]
# @options ["dev", "test", "beta", "release"]
# @group "Advanced"
# @group "Advanced"
variable "args" {
variable "args" {
type =
string
type =
optional(string)
description = "属于那个环境,例子:dev,test,beta,release"
description = "属于那个环境,例子:dev,test,beta,release"
default = "test"
default = "test"
}
}
...
...
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