From d3591180366b8b4ec2f0da05a01c459b35cfe6e5 Mon Sep 17 00:00:00 2001 From: Jenny Zhu Date: Mon, 10 Jun 2024 09:16:25 -0400 Subject: [PATCH] fix: include service proxy in distributed_tracing.go (#502) Signed-off-by: Jenny Zhu --- pkg/controllers/uiplugin/distributed_tracing.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkg/controllers/uiplugin/distributed_tracing.go b/pkg/controllers/uiplugin/distributed_tracing.go index 8dc47900..d3181aea 100644 --- a/pkg/controllers/uiplugin/distributed_tracing.go +++ b/pkg/controllers/uiplugin/distributed_tracing.go @@ -5,6 +5,7 @@ import ( "fmt" "strings" + osv1alpha1 "github.com/openshift/api/console/v1alpha1" "gopkg.in/yaml.v3" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" @@ -36,6 +37,18 @@ func createDistributedTracingPluginInfo(plugin *uiv1alpha1.UIPlugin, namespace, DisplayName: "Distributed Tracing Console Plugin", ResourceNamespace: namespace, ExtraArgs: extraArgs, + Proxies: []osv1alpha1.ConsolePluginProxy{ + { + Type: osv1alpha1.ProxyTypeService, + Alias: "backend", + Authorize: true, + Service: osv1alpha1.ConsolePluginProxyServiceConfig{ + Name: name, + Namespace: namespace, + Port: 9443, + }, + }, + }, ConfigMap: &corev1.ConfigMap{ TypeMeta: metav1.TypeMeta{ APIVersion: corev1.SchemeGroupVersion.String(),