in pkg/monitoring/server.go [147:156]
func (m *Server) readyHandler(writer http.ResponseWriter, _ *http.Request) {
status := http.StatusOK
health, err := m.isReadyAndHealthy()
if err != nil {
status = http.StatusServiceUnavailable
}
if err := writeJSONResponse(writer, status, health); err != nil {
m.logger.Error(err, "Failed to write readiness endpoint status to client")
}
}