mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Add additional loging to max_pods e2e test
This commit is contained in:
parent
34dd9c7880
commit
460935236d
@ -100,6 +100,13 @@ var _ = Describe("MaxPods", func() {
|
|||||||
By(fmt.Sprintf("Starting additional %v Pods to fully saturate the cluster and trying to start a new one", podsNeededForSaturation))
|
By(fmt.Sprintf("Starting additional %v Pods to fully saturate the cluster and trying to start a new one", podsNeededForSaturation))
|
||||||
expectNoError(RunRC(config))
|
expectNoError(RunRC(config))
|
||||||
|
|
||||||
|
// Log the amount of pods running in the cluster.
|
||||||
|
// TODO: remove when test is fixed.
|
||||||
|
pods, err = c.Pods(api.NamespaceAll).List(labels.Everything(), fields.Set{
|
||||||
|
"status.phase": "Running",
|
||||||
|
}.AsSelector())
|
||||||
|
Logf("Observed %v running Pods. Need %v to fully saturate the cluster.", len(pods.Items), totalPodCapacity)
|
||||||
|
|
||||||
_, err = c.Pods(ns).Create(&api.Pod{
|
_, err = c.Pods(ns).Create(&api.Pod{
|
||||||
TypeMeta: api.TypeMeta{
|
TypeMeta: api.TypeMeta{
|
||||||
Kind: "Pod",
|
Kind: "Pod",
|
||||||
|
Loading…
Reference in New Issue
Block a user