mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #90781 from msau42/increase-timeout
Increase timeout waiting for driver to start on nodes
This commit is contained in:
commit
7f78048594
@ -530,7 +530,7 @@ func waitForCSIDriverRegistrationOnAllNodes(driverName string, cs clientset.Inte
|
|||||||
}
|
}
|
||||||
|
|
||||||
func waitForCSIDriverRegistrationOnNode(nodeName string, driverName string, cs clientset.Interface) error {
|
func waitForCSIDriverRegistrationOnNode(nodeName string, driverName string, cs clientset.Interface) error {
|
||||||
const csiNodeRegisterTimeout = 1 * time.Minute
|
const csiNodeRegisterTimeout = 5 * time.Minute
|
||||||
|
|
||||||
waitErr := wait.PollImmediate(10*time.Second, csiNodeRegisterTimeout, func() (bool, error) {
|
waitErr := wait.PollImmediate(10*time.Second, csiNodeRegisterTimeout, func() (bool, error) {
|
||||||
csiNode, err := cs.StorageV1().CSINodes().Get(context.TODO(), nodeName, metav1.GetOptions{})
|
csiNode, err := cs.StorageV1().CSINodes().Get(context.TODO(), nodeName, metav1.GetOptions{})
|
||||||
|
Loading…
Reference in New Issue
Block a user