Skip to content

Commit

Permalink
fix: include service proxy in distributed_tracing.go (#502)
Browse files Browse the repository at this point in the history
Signed-off-by: Jenny Zhu <[email protected]>
  • Loading branch information
zhuje authored Jun 10, 2024
1 parent 8614196 commit d359118
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/controllers/uiplugin/distributed_tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit d359118

Please sign in to comment.