()
| 144 | } |
| 145 | |
| 146 | func GetClientPodNameInWorker() (string, error) { |
| 147 | out, err := KubeCtlCommand("-n", DragonflyNamespace, "get", "pod", "-l", "component=client", |
| 148 | "-o", "jsonpath='{.items[?(@.spec.nodeName==\"kind-worker\")].metadata.name}'").CombinedOutput() |
| 149 | if err != nil { |
| 150 | return "", err |
| 151 | } |
| 152 | |
| 153 | podName := strings.Trim(string(out), "'") |
| 154 | fmt.Println(podName) |
| 155 | return podName, nil |
| 156 | } |
| 157 | |
| 158 | func GetSeedClientPodName(n int) (string, error) { |
| 159 | out, err := KubeCtlCommand("-n", DragonflyNamespace, "get", "pod", "-l", "component=seed-client", |
no test coverage detected