From 00da5e99fbed0a1a7e7e5ef1c0930ca8495bbee7 Mon Sep 17 00:00:00 2001 From: anfranci Date: Thu, 2 Feb 2023 12:41:49 -0600 Subject: [PATCH] add model mapping to support add/update of initContainers to ContainerApps via Yaml --- src/containerapp/HISTORY.rst | 1 + src/containerapp/azext_containerapp/_models.py | 1 + src/containerapp/azext_containerapp/_sdk_models.py | 1 + 3 files changed, 3 insertions(+) diff --git a/src/containerapp/HISTORY.rst b/src/containerapp/HISTORY.rst index 3fb3ae5cd9b..8d5cd41c41e 100644 --- a/src/containerapp/HISTORY.rst +++ b/src/containerapp/HISTORY.rst @@ -10,6 +10,7 @@ Upcoming ++++++ * Fix the PermissionError caused for the Temporary files while running `az containerapp up` command on Windows * Fix the empty IP Restrictions object caused running `az containerapp update` command on Windows with a pre existing .yaml file +* Added model mapping to support add/update of init Containers via `az containerapp create` & `az containerapp update` commands. 0.3.20 ++++++ diff --git a/src/containerapp/azext_containerapp/_models.py b/src/containerapp/azext_containerapp/_models.py index 9dbfbaa09c3..d6d3a45d6c6 100644 --- a/src/containerapp/azext_containerapp/_models.py +++ b/src/containerapp/azext_containerapp/_models.py @@ -165,6 +165,7 @@ Template = { "revisionSuffix": None, "containers": None, # [Container] + "initContainers": None, # [Container] "scale": Scale, "volumes": None # [Volume] } diff --git a/src/containerapp/azext_containerapp/_sdk_models.py b/src/containerapp/azext_containerapp/_sdk_models.py index 5a37854a966..286caff3790 100644 --- a/src/containerapp/azext_containerapp/_sdk_models.py +++ b/src/containerapp/azext_containerapp/_sdk_models.py @@ -3217,6 +3217,7 @@ class Template(Model): _attribute_map = { 'revision_suffix': {'key': 'revisionSuffix', 'type': 'str'}, 'containers': {'key': 'containers', 'type': '[Container]'}, + 'initContainers': {'key': 'initContainers', 'type': '[Container]'}, 'scale': {'key': 'scale', 'type': 'Scale'}, 'volumes': {'key': 'volumes', 'type': '[Volume]'}, }