updating modules
This commit is contained in:
@@ -12,7 +12,7 @@ resource "azurerm_container_app" "container_app_app" {
|
|||||||
for_each = length(var.init_containers) > 0 ? var.init_containers : []
|
for_each = length(var.init_containers) > 0 ? var.init_containers : []
|
||||||
iterator = init_container
|
iterator = init_container
|
||||||
content {
|
content {
|
||||||
command = init_container.value.command != null ? [init_container.value.command] : []
|
command = init_container.value.command != null ? init_container.value.command : []
|
||||||
cpu = init_container.value.cpu
|
cpu = init_container.value.cpu
|
||||||
image = "${init_container.value.image}"
|
image = "${init_container.value.image}"
|
||||||
memory = init_container.value.memory
|
memory = init_container.value.memory
|
||||||
@@ -44,7 +44,7 @@ resource "azurerm_container_app" "container_app_app" {
|
|||||||
for_each = var.containers
|
for_each = var.containers
|
||||||
iterator = container
|
iterator = container
|
||||||
content {
|
content {
|
||||||
command = container.value.command != null ? [container.value.command] : []
|
command = container.value.command != null ? container.value.command : []
|
||||||
cpu = container.value.cpu
|
cpu = container.value.cpu
|
||||||
image = "${container.value.image}"
|
image = "${container.value.image}"
|
||||||
memory = container.value.memory
|
memory = container.value.memory
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ variable "app_subdomain_name" {
|
|||||||
|
|
||||||
variable "containers" {
|
variable "containers" {
|
||||||
type = list(object({
|
type = list(object({
|
||||||
command = optional(string)
|
command = optional(list(string))
|
||||||
cpu = optional(string)
|
cpu = optional(string)
|
||||||
envs = optional(list(object({
|
envs = optional(list(object({
|
||||||
name = string
|
name = string
|
||||||
@@ -69,7 +69,7 @@ variable "ingress_transport" {
|
|||||||
variable "init_containers" {
|
variable "init_containers" {
|
||||||
default = []
|
default = []
|
||||||
type = list(object({
|
type = list(object({
|
||||||
command = optional(string)
|
command = optional(list(string))
|
||||||
cpu = optional(string)
|
cpu = optional(string)
|
||||||
envs = optional(list(object({
|
envs = optional(list(object({
|
||||||
name = string
|
name = string
|
||||||
|
|||||||
Reference in New Issue
Block a user