func GetPodInfoByPodIp(podIp string) (*model.OneRmResultDto, error) {
	if EmptyString == podIp {
		log.Logger.Warnf("pod ip is empty")
		return nil, errors.New("invalid host ip")
	}
	url := fmt.Sprintf("%s/%s?podIp=%s", rmApiUrl, "getPodInfoByPodIp", podIp)
	content, err := rest.HttpGet(url, DefaultTimeout)
	if err != nil {
		log.Logger.Warnf("http get GetPodInfoByPodIp error, url=%s", url)
		return nil, err
	}
	oneresult := &model.OneRmResultDto{}
	err = jsoniter.Unmarshal(content, oneresult)
	if err != nil {
		log.Logger.Warnf("unmarshal error,get pod info by podIp from rm error=%s", err.Error())
		return nil, err
	}
	if oneresult.Code != 0 {
		err = errors.Errorf("code = %d,get pod info by podIp=%s", oneresult.Code, podIp)
		log.Logger.Warnf(err.Error())
		return nil, err
	}
	return oneresult, nil
}
GetPodInfoByPodIp return the pod information from rm according to the podIP
package dockin
import (
	"fmt"
	"strings"
	"time"
	"github.com/webankfintech/dockin-opserver/internal/config"
	"github.com/webankfintech/dockin-opserver/internal/log"
	"github.com/webankfintech/dockin-opserver/internal/model"
	"github.com/webankfintech/dockin-opserver/internal/utils/rest"
	jsoniter "github.com/json-iterator/go"
	"github.com/pkg/errors"
)
var (
	DefaultTimeout = time.Duration(10 * time.Second)
	HostKey        = "app.rm.api"
	EmptyString    = ""
	rmApiUrl       string
)
func init() {
	rmApiUrl = config.OpsConfig.RMAddress
}
func GetPodListInfoByHostIp(hostIp string) (*model.RmResultDto, error) {
	if EmptyString == hostIp {
		log.Logger.Warnf("host ip is empty")
		return nil, errors.New("invalid host ip")
	}
	url := fmt.Sprintf("%s/%s?hostIp=%s", rmApiUrl, "getPodInfoByHostIp", hostIp)
	content, err := rest.HttpGet(url, DefaultTimeout)
	if err != nil {
		log.Logger.Warnf("http get GetPodListInfoByHostIp, hostIp=%s err %s",
			hostIp, err.Error())
		return nil, err
	}
	rmresult := &model.RmResultDto{}
	if err = jsoniter.Unmarshal(content, rmresult); err != nil {
		log.Logger.Warnf("GetPodListInfoByHostIp, unmarshal err, ip=%s,content=%s",
			hostIp, string(content))
		return nil, err
	}
	if rmresult.Code != 0 {
		err = errors.Errorf("code = %d,get pod list info by hostIP=%s", rmresult.Code, hostIp)
		log.Logger.Warnf(err.Error())
		return nil, err
	}
	return rmresult, nil
}