From 085759552f45deaa0d6d5b3b7f01f13e94f9b54f Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Sun, 24 Aug 2025 14:57:32 -0500 Subject: [PATCH] updating modules --- modules/container_app/container_app.tf | 2 ++ modules/container_app/variables.tf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/container_app/container_app.tf b/modules/container_app/container_app.tf index 0cd95d5..723125d 100644 --- a/modules/container_app/container_app.tf +++ b/modules/container_app/container_app.tf @@ -12,6 +12,7 @@ resource "azurerm_container_app" "container_app_app" { for_each = length(var.init_containers) > 0 ? var.init_containers : [] iterator = init_container content { + args = container.value.args != null ? container.value.args : [] command = init_container.value.command != null ? init_container.value.command : [] cpu = init_container.value.cpu image = "${init_container.value.image}" @@ -44,6 +45,7 @@ resource "azurerm_container_app" "container_app_app" { for_each = var.containers iterator = container content { + args = container.value.args != null ? container.value.args : [] command = container.value.command != null ? container.value.command : [] cpu = container.value.cpu image = "${container.value.image}" diff --git a/modules/container_app/variables.tf b/modules/container_app/variables.tf index 1dc8e9c..8ecdc38 100644 --- a/modules/container_app/variables.tf +++ b/modules/container_app/variables.tf @@ -5,6 +5,7 @@ variable "app_subdomain_name" { variable "containers" { type = list(object({ + args = optional(list(string)) command = optional(list(string)) cpu = optional(string) envs = optional(list(object({ @@ -69,6 +70,7 @@ variable "ingress_transport" { variable "init_containers" { default = [] type = list(object({ + args = optional(list(string)) command = optional(list(string)) cpu = optional(string) envs = optional(list(object({