Skip to content

Commit

Permalink
Adding condition for traffic label
Browse files Browse the repository at this point in the history
  • Loading branch information
oZakari committed May 31, 2024
1 parent 05bd74e commit a965dac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion avm/res/app/container-app/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ resource containerApp 'Microsoft.App/containerApps@2023-05-01' = {
}
traffic: [
{
label: trafficLabel
label: ingressTransport == 'tcp' ? null : trafficLabel
latestRevision: trafficLatestRevision
revisionName: trafficRevisionName
weight: trafficWeight
Expand Down
4 changes: 2 additions & 2 deletions avm/res/app/container-app/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.27.1.19265",
"templateHash": "9180046963184653073"
"templateHash": "5206101859404524827"
},
"name": "Container Apps",
"description": "This module deploys a Container App.",
Expand Down Expand Up @@ -718,7 +718,7 @@
},
"traffic": [
{
"label": "[parameters('trafficLabel')]",
"label": "[if(equals(parameters('ingressTransport'), 'tcp'), null(), parameters('trafficLabel'))]",
"latestRevision": "[parameters('trafficLatestRevision')]",
"revisionName": "[parameters('trafficRevisionName')]",
"weight": "[parameters('trafficWeight')]"
Expand Down

0 comments on commit a965dac

Please sign in to comment.