Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AppState and LatestReadyRevisionName (#21034) #21087

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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