Report the 'Pod no IP' issues
Signed-off-by: Yao Le <le.yao@intel.com>
Change-Id: Ieaf2997ca0ed1bd1f167d9d5f8c77cb43ab3fb45
}
cnfChanged := false
for _, pod := range podList.Items {
+ if pod.Status.PodIP == "" {
+ return false, errors.New("The target pod doesn't have an IP address")
+ }
clientInfo := &openwrt.OpenwrtClientInfo{Ip: pod.Status.PodIP, User: "root", Password: ""}
runtime_instance, err := handler.GetObject(clientInfo, new_instance.GetName())
changed := false