@@ -57,7 +57,7 @@ func GetServiceStatus(ktSvcs []coreV1.Service, pods []coreV1.Pod, svcs []coreV1.
5757 for _ , svc := range ktSvcs {
5858 for _ , p := range pods {
5959 if p .Labels [util .KtRole ] == util .RolePreviewShadow && util .MapContains (svc .Spec .Selector , p .Labels ) {
60- allServices = append (allServices , []string {svc .Name , "previewing by " + getUserName (p )})
60+ allServices = append (allServices , []string {svc .Name , fmt . Sprintf ( "previewing by [%s]" , getUserName (p ) )})
6161 break
6262 }
6363 }
@@ -67,7 +67,7 @@ func GetServiceStatus(ktSvcs []coreV1.Service, pods []coreV1.Pod, svcs []coreV1.
6767 for _ , p := range pods {
6868 if util .MapContains (svc .Spec .Selector , p .Labels ) {
6969 if role := p .Labels [util .KtRole ]; role == util .RoleExchangeShadow {
70- allServices = append (allServices , []string {svc .Name , "exchanged by " + getUserName (p )})
70+ allServices = append (allServices , []string {svc .Name , fmt . Sprintf ( "exchanged by [%s]" , getUserName (p ) )})
7171 continue svcLoop
7272 } else if role == util .RoleRouter {
7373 allServices = append (allServices , []string {svc .Name , "meshed (auto) by " +
@@ -113,7 +113,7 @@ func getMeshedUserNames(svcs []coreV1.Service, pods []coreV1.Pod, namePrefix str
113113 if len (users ) == 0 {
114114 return UnknownUser
115115 }
116- return strings .Join (users , ", " )
116+ return "[" + strings .Join (users , "], [" ) + "]"
117117}
118118
119119func checkConnector (labels map [string ]string , annotations map [string ]string ) string {
0 commit comments