Commit a61fe33f by chenxx

change args

1 parent 2e2302f6
...@@ -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
......
...@@ -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"
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!