Skip to content

Commit

Permalink
Add AppState and LatestReadyRevisionName (Azure#21034)
Browse files Browse the repository at this point in the history
* Add new props

* add defaults
  • Loading branch information
ruslany committed Oct 12, 2022
1 parent b6e8461 commit 1737cf1
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@
"Single"
],
"type": "string",
"default": "Single",
"x-ms-enum": {
"name": "ActiveRevisionsMode",
"modelAsString": true
Expand Down Expand Up @@ -568,11 +569,28 @@
"$ref": "./CommonDefinitions.json#/definitions/WorkloadProfileType",
"description": "Workload profile type to pin for container app execution."
},
"appState": {
"description": "Current state of the app. Controls if the app is enabled or disabled.",
"enum": [
"Enabled",
"Disabled"
],
"type": "string",
"x-ms-enum": {
"name": "AppState",
"modelAsString": true
}
},
"latestRevisionName": {
"description": "Name of the latest revision of the Container App.",
"type": "string",
"readOnly": true
},
"latestReadyRevisionName": {
"description": "Name of the latest ready revision of the Container App.",
"type": "string",
"readOnly": true
},
"latestRevisionFqdn": {
"description": "Fully Qualified Domain Name of the latest revision of the Container App.",
"type": "string",
Expand Down Expand Up @@ -636,7 +654,8 @@
"properties": {
"enabled": {
"description": "Boolean indicating if the Dapr side car is enabled",
"type": "boolean"
"type": "boolean",
"default": false
},
"appId": {
"description": "Dapr application identifier",
Expand All @@ -649,6 +668,7 @@
"grpc"
],
"type": "string",
"default": "http",
"x-ms-enum": {
"name": "appProtocol",
"modelAsString": true
Expand Down Expand Up @@ -725,7 +745,8 @@
"x-ms-enum": {
"name": "IngressTransportMethod",
"modelAsString": true
}
},
"default": "auto"
},
"traffic": {
"description": "Traffic weights for app's revisions",
Expand All @@ -749,7 +770,8 @@
},
"allowInsecure": {
"description": "Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections",
"type": "boolean"
"type": "boolean",
"default": false
},
"ipSecurityRestrictions": {
"description": "Rules to restrict incoming IP address.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"properties": {
"environmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
"workloadProfileType": "GeneralPurpose",
"appState": "Enabled",
"configuration": {
"ingress": {
"external": true,
Expand Down Expand Up @@ -130,6 +131,9 @@
"provisioningState": "Succeeded",
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
"workloadProfileType": "GeneralPurpose",
"appState": "Enabled",
"latestRevisionName": "testcontainerApp0-pjxhsye",
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
"configuration": {
"ingress": {
Expand Down Expand Up @@ -256,6 +260,9 @@
"properties": {
"provisioningState": "InProgress",
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
"appState": "Enabled",
"latestRevisionName": "testcontainerApp0-pjxhsye",
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
"configuration": {
"ingress": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"provisioningState": "Succeeded",
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
"workloadProfileType": "GeneralPurpose",
"appState": "Enabled",
"latestRevisionName": "testcontainerApp0-pjxhsye",
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
"configuration": {
"ingress": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"provisioningState": "Succeeded",
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
"workloadProfileType": "GeneralPurpose",
"appState": "Enabled",
"latestRevisionName": "testcontainerApp0-pjxhsye",
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
"configuration": {
"ingress": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"provisioningState": "Succeeded",
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
"workloadProfileType": "GeneralPurpose",
"appState": "Enabled",
"latestRevisionName": "testcontainerApp0-pjxhsye",
"latestReadyRevisionName": "testcontainerApp0-pjxhsye",
"latestRevisionFqdn": "testcontainerApp0-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
"configuration": {
"ingress": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"tag2": "value2"
},
"properties": {
"appState": "Enabled",
"configuration": {
"ingress": {
"external": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
"properties": {
"provisioningState": "Succeeded",
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
"appState": "Enabled",
"latestRevisionName": "testcontainerAppTcp-pjxhsye",
"latestReadyRevisionName": "testcontainerAppTcp-pjxhsye",
"latestRevisionFqdn": "testcontainerAppTcp-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
"configuration": {
"ingress": {
Expand Down Expand Up @@ -137,6 +140,9 @@
"properties": {
"provisioningState": "InProgress",
"managedEnvironmentId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
"appState": "Enabled",
"latestRevisionName": "testcontainerAppTcp-pjxhsye",
"latestReadyRevisionName": "testcontainerAppTcp-pjxhsye",
"latestRevisionFqdn": "testcontainerAppTcp-pjxhsye.demokube-t24clv0g.eastus.containerApps.k4apps.io",
"configuration": {
"ingress": {
Expand Down

0 comments on commit 1737cf1

Please sign in to comment.