File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ var _ = SIGDescribe("DisruptionController", func() {
474
474
rs .Labels ["name" ] = rsName
475
475
initialDelaySeconds := framework .PodStartTimeout .Seconds () + 30
476
476
if tc .podsShouldBecomeReadyFirst {
477
- initialDelaySeconds = 0
477
+ initialDelaySeconds = 20
478
478
}
479
479
rs .Spec .Template .Spec .Containers [0 ].ReadinessProbe = & v1.Probe {
480
480
ProbeHandler : v1.ProbeHandler {
@@ -511,6 +511,9 @@ var _ = SIGDescribe("DisruptionController", func() {
511
511
Namespace : ns ,
512
512
},
513
513
}
514
+ // New pods can be created between the evictions by a replica set controller.
515
+ // This can affect the PDB, and pods could potentially be evicted that shouldn't be.
516
+ // To prevent this, there should always be a sufficient pod readiness delay (see initialDelaySeconds).
514
517
err = cs .CoreV1 ().Pods (ns ).EvictV1 (ctx , e )
515
518
if err == nil {
516
519
evictedPods .Insert (pod .Name )
You can’t perform that action at this time.
0 commit comments