X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=cmd%2Fappmgr%2Fhelm.go;h=8a8154ac6bd91ff9afb6931f8e4448ef415f0975;hb=45df1f32f8b82c380c5cd25fd6753a6581180d45;hp=874ae2b9fe4fa4a8fbd27a498b92ce6360b0030e;hpb=ce7b0e67b8e3d7cfac6dcaed8e0a77583e115ae3;p=ric-plt%2Fappmgr.git diff --git a/cmd/appmgr/helm.go b/cmd/appmgr/helm.go index 874ae2b..8a8154a 100755 --- a/cmd/appmgr/helm.go +++ b/cmd/appmgr/helm.go @@ -274,13 +274,16 @@ func (h *Helm) GetAddress(out string) (ip, port string) { } func (h *Helm) GetEndpointInfo(name string) (ip string, port int) { - args := fmt.Sprintf(" get endpoints -o=jsonpath='{.subsets[*].addresses[*].ip}' %s -n %s", name, h.cm.GetNamespace("")) + ns := h.cm.GetNamespace("") + args := fmt.Sprintf(" get endpoints -o=jsonpath='{.subsets[*].addresses[*].ip}' service-%s-%s-rmr -n %s", ns, name, ns) out, err := KubectlExec(args) if err != nil { return } + Logger.Info("Endpoint IP address of %s: %s", name, string(out)) - return string(out), 4560 + // "service---rmr." + return "service-" + ns + "-" + name + "-rmr." + ns, 4560 } func (h *Helm) GetNames(out string) (names []string, err error) {