Merge pull request #87670 from liggitt/gc-debug

Add GC e2e debug logging
This commit is contained in:
Kubernetes Prow Robot 2020-01-30 05:06:47 -08:00 committed by GitHub
commit 517e886aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ limitations under the License.
package apimachinery
import (
"encoding/json"
"fmt"
"sync/atomic"
"time"
@ -872,7 +873,8 @@ var _ = SIGDescribe("Garbage collector", func() {
}
return false, nil
}); err != nil {
framework.Logf("pods are %#v", pods.Items)
data, _ := json.Marshal(pods.Items)
framework.Logf("pods are %s", string(data))
framework.Failf("failed to wait for all pods to be deleted: %v", err)
}
})