HTTPReadinessProbe checks readiness by making HTTP or HTTPS call and checking for expected HTTP/HTTPS status code.
| 276 | |
| 277 | // HTTPReadinessProbe checks readiness by making HTTP or HTTPS call and checking for expected HTTP/HTTPS status code. |
| 278 | type HTTPReadinessProbe struct { |
| 279 | portName string |
| 280 | path string |
| 281 | scheme string |
| 282 | expectedStatusRangeStart int |
| 283 | expectedStatusRangeEnd int |
| 284 | expectedContent []string |
| 285 | } |
| 286 | |
| 287 | func NewHTTPReadinessProbe(portName string, path string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...string) *HTTPReadinessProbe { |
| 288 | return newHTTPReadinessProbe(portName, path, "HTTP", |
nothing calls this directly
no outgoing calls
no test coverage detected