From 9ae899d4c0f0626d4645703f607ef0da3a72f266 Mon Sep 17 00:00:00 2001 From: Bipul Adhikari Date: Tue, 26 Dec 2023 10:49:24 +0545 Subject: [PATCH] Adds proxy for Provider mode backend in ConsolePlugin Signed-off-by: Bipul Adhikari --- console/console.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/console/console.go b/console/console.go index 14825a05d..f178f028e 100644 --- a/console/console.go +++ b/console/console.go @@ -94,6 +94,17 @@ func GetConsolePluginCR(consolePort int, serviceNamespace string) *consolev1alph Namespace: serviceNamespace, Port: int32(consolePort), }, + Proxy: []consolev1alpha1.ConsolePluginProxy{{ + Type: consolev1alpha1.ProxyTypeService, + Alias: "provider-proxy", + Service: consolev1alpha1.ConsolePluginProxyServiceConfig{ + Name: "ux-backend-proxy", + Namespace: serviceNamespace, + Port: 8888, + }, + Authorize: true, + }, + }, }, } }