mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
kubelet: volumemanager: poll immediate when waiting for volume attachment
This commit is contained in:
parent
c2536e2b0d
commit
0413850d14
@ -352,7 +352,7 @@ func (vm *volumeManager) WaitForAttachAndMount(pod *v1.Pod) error {
|
|||||||
// like Downward API, depend on this to update the contents of the volume).
|
// like Downward API, depend on this to update the contents of the volume).
|
||||||
vm.desiredStateOfWorldPopulator.ReprocessPod(uniquePodName)
|
vm.desiredStateOfWorldPopulator.ReprocessPod(uniquePodName)
|
||||||
|
|
||||||
err := wait.Poll(
|
err := wait.PollImmediate(
|
||||||
podAttachAndMountRetryInterval,
|
podAttachAndMountRetryInterval,
|
||||||
podAttachAndMountTimeout,
|
podAttachAndMountTimeout,
|
||||||
vm.verifyVolumesMountedFunc(uniquePodName, expectedVolumes))
|
vm.verifyVolumesMountedFunc(uniquePodName, expectedVolumes))
|
||||||
|
Loading…
Reference in New Issue
Block a user