support using Kiali API directly

Signed-off-by: zackzhangkai <zackzhang@yunify.com>
This commit is contained in:
zackzhangkai
2020-12-17 18:26:38 +08:00
parent ce0f417949
commit f153390468
4 changed files with 95 additions and 14 deletions

View File

@@ -106,6 +106,11 @@ func initializeServicemeshConfig(s *options.ServerRunOptions) {
tracing.JaegerQueryUrl = s.ServiceMeshOptions.JaegerQueryHost
}
// Set the kiali query endpoint address
if s.ServiceMeshOptions != nil && len(s.ServiceMeshOptions.KialiQueryHost) != 0 {
tracing.KialiQueryUrl = s.ServiceMeshOptions.KialiQueryHost
}
// Exclude system namespaces
config.API.Namespaces.Exclude = []string{"istio-system", "kube-.*"}
config.InCluster = true