Skip to content

Commit dad7d3c

Browse files
ahmelsayedjijohn14
andauthored
Add springboard properties (#23932)
* Add springboard properties * CR comments * Update specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json Co-authored-by: Jitin John <[email protected]> * Update specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json Co-authored-by: Jitin John <[email protected]> --------- Co-authored-by: Jitin John <[email protected]>
1 parent 45991aa commit dad7d3c

File tree

6 files changed

+85
-8
lines changed

6 files changed

+85
-8
lines changed

specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/CommonDefinitions.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,16 @@
616616
"x-ms-identifiers": [
617617
"name"
618618
]
619+
},
620+
"serviceBinds": {
621+
"description": "List of container app services bound to the app",
622+
"type": "array",
623+
"items": {
624+
"$ref": "#/definitions/ServiceBind"
625+
},
626+
"x-ms-identifier": [
627+
"name"
628+
]
619629
}
620630
}
621631
},
@@ -1149,6 +1159,20 @@
11491159
]
11501160
}
11511161
}
1162+
},
1163+
"ServiceBind": {
1164+
"description": "Configuration to bind a ContainerApp to a dev ContainerApp Service",
1165+
"type": "object",
1166+
"properties": {
1167+
"serviceId": {
1168+
"description": "Resource id of the target service",
1169+
"type": "string"
1170+
},
1171+
"name": {
1172+
"description": "Name of the service bind",
1173+
"type": "string"
1174+
}
1175+
}
11521176
}
11531177
},
11541178
"securityDefinitions": {

specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/ContainerApps.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,10 @@
647647
"format": "int32",
648648
"description": "Optional. Max inactive revisions a Container App can have.",
649649
"type": "integer"
650+
},
651+
"service": {
652+
"$ref": "#/definitions/Service",
653+
"description": "Container App to be a dev Container App Service"
650654
}
651655
}
652656
},
@@ -1317,6 +1321,19 @@
13171321
"x-ms-client-flatten": true
13181322
}
13191323
}
1324+
},
1325+
"Service": {
1326+
"description": "Container App to be a dev service",
1327+
"type": "object",
1328+
"required": [
1329+
"type"
1330+
],
1331+
"properties": {
1332+
"type": {
1333+
"description": "Dev ContainerApp service type",
1334+
"type": "string"
1335+
}
1336+
}
13201337
}
13211338
},
13221339
"securityDefinitions": {

specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_CreateOrUpdate.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@
8080
"logLevel": "debug",
8181
"enableApiLogging": true
8282
},
83-
"maxInactiveRevisions": 10
83+
"maxInactiveRevisions": 10,
84+
"service": {
85+
"type": "redis"
86+
}
8487
},
8588
"template": {
8689
"containers": [
@@ -137,7 +140,13 @@
137140
}
138141
}
139142
]
140-
}
143+
},
144+
"serviceBinds": [
145+
{
146+
"serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/redisService",
147+
"name": "redisService"
148+
}
149+
]
141150
}
142151
}
143152
}

specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Get.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@
7575
"logLevel": "debug",
7676
"enableApiLogging": true
7777
},
78-
"maxInactiveRevisions": 10
78+
"maxInactiveRevisions": 10,
79+
"service": {
80+
"type": "redis"
81+
}
7982
},
8083
"template": {
8184
"containers": [
@@ -111,7 +114,13 @@
111114
}
112115
}
113116
]
114-
}
117+
},
118+
"serviceBinds": [
119+
{
120+
"serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service",
121+
"name": "service"
122+
}
123+
]
115124
},
116125
"eventStreamEndpoint": "testEndpoint"
117126
}

specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_ListBySubscription.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@
7575
"logLevel": "debug",
7676
"enableApiLogging": true
7777
},
78-
"maxInactiveRevisions": 10
78+
"maxInactiveRevisions": 10,
79+
"service": {
80+
"type": "redis"
81+
}
7982
},
8083
"template": {
8184
"containers": [
@@ -111,7 +114,13 @@
111114
}
112115
}
113116
]
114-
}
117+
},
118+
"serviceBinds": [
119+
{
120+
"serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service",
121+
"name": "service"
122+
}
123+
]
115124
},
116125
"eventStreamEndpoint": "testEndpoint"
117126
}

specification/app/resource-manager/Microsoft.App/preview/2023-04-01-preview/examples/ContainerApps_Patch.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@
6161
"logLevel": "debug",
6262
"enableApiLogging": true
6363
},
64-
"maxInactiveRevisions": 10
64+
"maxInactiveRevisions": 10,
65+
"service": {
66+
"type": "redis"
67+
}
6568
},
6669
"template": {
6770
"containers": [
@@ -111,7 +114,13 @@
111114
}
112115
}
113116
]
114-
}
117+
},
118+
"serviceBinds": [
119+
{
120+
"serviceId": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/service",
121+
"name": "service"
122+
}
123+
]
115124
}
116125
}
117126
}

0 commit comments

Comments
 (0)