Skip to content

Commit

Permalink
Correct Probe enums (Azure#18839)
Browse files Browse the repository at this point in the history
* fix probe enums

* Fix revision mode enum

* Fix patch example
  • Loading branch information
vusause authored and ruslany committed May 11, 2022
1 parent fabf9a5 commit cf63ae6
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,15 @@
},
"scheme": {
"description": "Scheme to use for connecting to the host. Defaults to HTTP.",
"type": "string"
"enum": [
"HTTP",
"HTTPS"
],
"type": "string",
"x-ms-enum": {
"name": "Scheme",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -222,9 +230,9 @@
"type": {
"description": "The type of probe.",
"enum": [
"liveness",
"readiness",
"startup"
"Liveness",
"Readiness",
"Startup"
],
"type": "string",
"x-ms-enum": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@
"activeRevisionsMode": {
"description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\n<list><item>Multiple: multiple revisions can be active. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</item></list>",
"enum": [
"multiple",
"single"
"Multiple",
"Single"
],
"type": "string",
"x-ms-enum": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"name": "testcontainerApp0",
"probes": [
{
"type": "liveness",
"type": "Liveness",
"httpGet": {
"path": "/health",
"port": 8080,
Expand Down Expand Up @@ -122,7 +122,7 @@
},
"probes": [
{
"type": "liveness",
"type": "Liveness",
"httpGet": {
"path": "/health",
"port": 8080,
Expand Down Expand Up @@ -192,7 +192,7 @@
},
"probes": [
{
"type": "liveness",
"type": "Liveness",
"httpGet": {
"path": "/health",
"port": 8080,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,15 @@
},
"scheme": {
"description": "Scheme to use for connecting to the host. Defaults to HTTP.",
"type": "string"
"enum": [
"HTTP",
"HTTPS"
],
"type": "string",
"x-ms-enum": {
"name": "Scheme",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -222,9 +230,9 @@
"type": {
"description": "The type of probe.",
"enum": [
"liveness",
"readiness",
"startup"
"Liveness",
"Readiness",
"Startup"
],
"type": "string",
"x-ms-enum": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@
"activeRevisionsMode": {
"description": "ActiveRevisionsMode controls how active revisions are handled for the Container app:\n<list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>",
"enum": [
"multiple",
"single"
"Multiple",
"Single"
],
"type": "string",
"x-ms-enum": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"name": "testcontainerApp0",
"probes": [
{
"type": "liveness",
"type": "Liveness",
"httpGet": {
"path": "/health",
"port": 8080,
Expand Down Expand Up @@ -140,7 +140,7 @@
},
"probes": [
{
"type": "liveness",
"type": "Liveness",
"httpGet": {
"path": "/health",
"port": 8080,
Expand Down Expand Up @@ -221,7 +221,7 @@
},
"probes": [
{
"type": "liveness",
"type": "Liveness",
"httpGet": {
"path": "/health",
"port": 8080,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"name": "testcontainerApp0",
"probes": [
{
"type": "liveness",
"type": "Liveness",
"httpGet": {
"path": "/health",
"port": 8080,
Expand Down

0 comments on commit cf63ae6

Please sign in to comment.