mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Increase time it takes for second pod to startup for offline resizing
This commit is contained in:
parent
bad8a51b9a
commit
4614817100
@ -42,6 +42,12 @@ const (
|
|||||||
resizePollInterval = 2 * time.Second
|
resizePollInterval = 2 * time.Second
|
||||||
// total time to wait for cloudprovider or file system resize to finish
|
// total time to wait for cloudprovider or file system resize to finish
|
||||||
totalResizeWaitPeriod = 10 * time.Minute
|
totalResizeWaitPeriod = 10 * time.Minute
|
||||||
|
|
||||||
|
// resizedPodStartupTimeout defines time we should wait for pod that uses offline
|
||||||
|
// resized volume to startup. This time is higher than default PodStartTimeout because
|
||||||
|
// typically time to detach and then attach a volume is amortized in this time duration.
|
||||||
|
resizedPodStartupTimeout = 10 * time.Minute
|
||||||
|
|
||||||
// time to wait for PVC conditions to sync
|
// time to wait for PVC conditions to sync
|
||||||
pvcConditionSyncPeriod = 2 * time.Minute
|
pvcConditionSyncPeriod = 2 * time.Minute
|
||||||
)
|
)
|
||||||
@ -214,7 +220,7 @@ func (v *volumeExpandTestSuite) DefineTests(driver TestDriver, pattern testpatte
|
|||||||
SeLinuxLabel: e2epv.SELinuxLabel,
|
SeLinuxLabel: e2epv.SELinuxLabel,
|
||||||
NodeSelection: l.config.ClientNodeSelection,
|
NodeSelection: l.config.ClientNodeSelection,
|
||||||
}
|
}
|
||||||
l.pod2, err = e2epod.CreateSecPodWithNodeSelection(f.ClientSet, &podConfig, framework.PodStartTimeout)
|
l.pod2, err = e2epod.CreateSecPodWithNodeSelection(f.ClientSet, &podConfig, resizedPodStartupTimeout)
|
||||||
defer func() {
|
defer func() {
|
||||||
err = e2epod.DeletePodWithWait(f.ClientSet, l.pod2)
|
err = e2epod.DeletePodWithWait(f.ClientSet, l.pod2)
|
||||||
framework.ExpectNoError(err, "while cleaning up pod before exiting resizing test")
|
framework.ExpectNoError(err, "while cleaning up pod before exiting resizing test")
|
||||||
|
Loading…
Reference in New Issue
Block a user