From f73e8a6fd752d44e5b44005b025a8f5c9a49eeb9 Mon Sep 17 00:00:00 2001 From: Wilfred Spiegelenburg Date: Mon, 11 Nov 2024 12:35:40 +1100 Subject: [PATCH] Add back incorrectly removed health check route --- pkg/webservice/routes.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkg/webservice/routes.go b/pkg/webservice/routes.go index 3b8a795a5..50c5e20a3 100644 --- a/pkg/webservice/routes.go +++ b/pkg/webservice/routes.go @@ -59,7 +59,7 @@ var webRoutes = routes{ validateConf, }, - // endpoints to retrieve + // endpoints to retrieve general scheduler info route{ "Scheduler", "GET", @@ -174,6 +174,12 @@ var webRoutes = routes{ "/ws/v1/events/stream", getStream, }, + route{ + "Scheduler", + "GET", + "/ws/v1/scheduler/healthcheck", + checkHealthStatus, + }, route{ "Scheduler", "GET", @@ -268,8 +274,8 @@ var webRoutes = routes{ // Deprecated REST calls // - // Replaced with /ws/v1/scheduler/node-utilizations - // Remove as part of YuniKorn 1.10 + // Replaced with /ws/v1/scheduler/node-utilizations as part of YuniKorn 1.5 + // Remove as part of YuniKorn 1.8 route{ Name: "Scheduler", Method: "GET",