HTTPReadinessProbe checks readiness by making HTTP call and checking for expected HTTP status code
| 421 | |
| 422 | // HTTPReadinessProbe checks readiness by making HTTP call and checking for expected HTTP status code |
| 423 | type HTTPReadinessProbe struct { |
| 424 | port int |
| 425 | path string |
| 426 | expectedStatusRangeStart int |
| 427 | expectedStatusRangeEnd int |
| 428 | expectedContent []string |
| 429 | } |
| 430 | |
| 431 | func NewHTTPReadinessProbe(port int, path string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...string) *HTTPReadinessProbe { |
| 432 | return &HTTPReadinessProbe{ |
nothing calls this directly
no outgoing calls
no test coverage detected