Skip to content

Commit a414ff0

Browse files
Fail on update parameters (SchemaStore#4716)
1 parent 0b29f9e commit a414ff0

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed

src/schemas/json/mta.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,18 @@
8484
"items": {
8585
"type": "string",
8686
"enum": [
87-
"application.before-stop.live",
88-
"application.before-stop.idle",
89-
"application.after-stop.live",
90-
"application.after-stop.idle"
87+
"deploy.application.before-stop",
88+
"blue-green.application.before-stop.idle",
89+
"blue-green.application.before-stop.live",
90+
"deploy.application.after-stop",
91+
"blue-green.application.after-stop.idle",
92+
"blue-green.application.after-stop.live",
93+
"deploy.application.before-unmap-routes",
94+
"blue-green.application.before-unmap-routes.live",
95+
"blue-green.application.before-unmap-routes.idle",
96+
"deploy.application.before-start",
97+
"blue-green.application.before-start.idle",
98+
"blue-green.application.before-start.live"
9199
]
92100
}
93101
},

src/schemas/json/mtad.json

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,10 @@
553553
"$ref": "#/definitions/resource-skip-service-updates",
554554
"description": "Map value, containing the service components (parameters, plan, tags) to skip when updating a service."
555555
},
556+
"fail-on-service-update": {
557+
"$ref": "#/definitions/resource-fail-on-service-update",
558+
"description": "Map value specifying which service components (parameters, plan, tags) should cause the deployment to fail if their update fails."
559+
},
556560
"provider-nid": {
557561
"description": "When used for cross-MTA dependency resolution the provider-nid is always 'mta'.",
558562
"type": "string",
@@ -594,6 +598,23 @@
594598
}
595599
}
596600
},
601+
"resource-fail-on-service-update": {
602+
"type": "object",
603+
"properties": {
604+
"parameters": {
605+
"description": "Specifies whether the deployment should fail if updating the service instance parameters fails.",
606+
"type": "boolean"
607+
},
608+
"plan": {
609+
"description": "Specifies whether the deployment should fail if updating the service plan fails.",
610+
"type": "boolean"
611+
},
612+
"tags": {
613+
"description": "Specifies whether the deployment should fail if updating the service tags fails.",
614+
"type": "boolean"
615+
}
616+
}
617+
},
597618
"resource-configuration-target": {
598619
"type": "object",
599620
"properties": {
@@ -646,11 +667,6 @@
646667
"items": {
647668
"type": "string",
648669
"enum": [
649-
"application.before-stop.live",
650-
"application.before-stop.idle",
651-
"application.after-stop.live",
652-
"application.after-stop.idle",
653-
"application.before-unmap-routes",
654670
"deploy.application.before-stop",
655671
"blue-green.application.before-stop.idle",
656672
"blue-green.application.before-stop.live",

0 commit comments

Comments
 (0)