mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Add a bit of extra logging to the dns test when it encounters
errors.
This commit is contained in:
parent
9a764b764b
commit
cb7bd71063
@ -119,14 +119,14 @@ func assertFilesExist(fileNames []string, fileDir string, pod *api.Pod, client *
|
||||
expectNoError(wait.Poll(time.Second*2, time.Second*60, func() (bool, error) {
|
||||
failed = []string{}
|
||||
for _, fileName := range fileNames {
|
||||
_, err := client.Get().
|
||||
if _, err := client.Get().
|
||||
Prefix("proxy").
|
||||
Resource("pods").
|
||||
Namespace(pod.Namespace).
|
||||
Name(pod.Name).
|
||||
Suffix(fileDir, fileName).
|
||||
Do().Raw()
|
||||
if err != nil {
|
||||
Do().Raw(); err != nil {
|
||||
Logf("Unable to read %s from pod %s: %v", fileName, pod.Name, err)
|
||||
failed = append(failed, fileName)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user