From dc45c30254003c2c4e95aa2f64e09df63382135d Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 26 Aug 2020 12:31:00 +0800 Subject: [PATCH] fix(k8s): use k8s app name --- pkg/proxy/k8sproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/proxy/k8sproxy.go b/pkg/proxy/k8sproxy.go index d9a74a1dd..d8c994552 100644 --- a/pkg/proxy/k8sproxy.go +++ b/pkg/proxy/k8sproxy.go @@ -213,7 +213,7 @@ func (p *K8sProxyServer) MapData(s *commonSwitch) map[string]interface{} { return map[string]interface{}{ "id": s.ID, "user": fmt.Sprintf("%s (%s)", p.User.Name, p.User.Username), - "asset": p.Cluster.Cluster, + "asset": p.Cluster.Name, "org_id": p.Cluster.OrgID, "login_from": p.UserConn.LoginFrom(), "system_user": fmt.Sprintf("%s (%s)", p.SystemUser.Name, p.SystemUser.Username),