From 17a1b1f6331f56d30e18170d3c83aae627d17d9e Mon Sep 17 00:00:00 2001 From: Aayush Chouhan Date: Mon, 21 Aug 2023 19:47:04 +0530 Subject: [PATCH] BugFix - [MCG] RPC method "list_objects" fails with "RPC: object.list_objects() Call failed: failed to WebSocket dial" Signed-off-by: Aayush Chouhan (cherry picked from commit 0f3dd04f29952dbe87b357653c8ac4ab6f6fb2f3) --- pkg/nb/router.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/nb/router.go b/pkg/nb/router.go index 287737781..45b9e3b6e 100644 --- a/pkg/nb/router.go +++ b/pkg/nb/router.go @@ -199,9 +199,6 @@ func FindPortByName(srv *corev1.Service, portName string) *corev1.ServicePort { // GetAPIPortName maps every noobaa api name to the service port name that serves it. func GetAPIPortName(api string) string { - if api == "object_api" || api == "func_api" { - return "md-https" - } if api == "scrubber_api" { return "bg-https" }