Skip to content

Commit

Permalink
Escape double quotes in readiness probe so that json is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
bekionel committed Oct 12, 2020
1 parent 70a6e01 commit be483de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/jws54-openjdk11-tomcat9-ubi8-basic-s2i.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"command": [
"/bin/bash",
"-c",
"curl --noproxy '*' -is 'http://localhost:8080/health' | grep -iq '"status": "UP"'"
"curl --noproxy '*' -is 'http://localhost:8080/health' | grep -iq '\"status\": \"UP\"'"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion templates/jws54-openjdk11-tomcat9-ubi8-https-s2i.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
"command": [
"/bin/bash",
"-c",
"curl --noproxy '*' -is 'http://localhost:8080/health' | grep -iq '"status": "UP"'"
"curl --noproxy '*' -is 'http://localhost:8080/health' | grep -iq '\"status\": \"UP\"'"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion templates/jws54-openjdk8-tomcat9-ubi8-basic-s2i.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
"command": [
"/bin/bash",
"-c",
"curl --noproxy '*' -is 'http://localhost:8080/health' | grep -iq '"status": "UP"'"
"curl --noproxy '*' -is 'http://localhost:8080/health' | grep -iq '\"status\": \"UP\"'"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion templates/jws54-openjdk8-tomcat9-ubi8-https-s2i.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
"command": [
"/bin/bash",
"-c",
"curl --noproxy '*' -is 'http://localhost:8080/health' | grep -iq '"status": "UP"'"
"curl --noproxy '*' -is 'http://localhost:8080/health' | grep -iq '\"status\": \"UP\"'"
]
}
},
Expand Down

0 comments on commit be483de

Please sign in to comment.