mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix volume attach limit flake
It looks like node does become unschedulable for the pod but condition does not get added to the pod in time. Also ginkgo could retry the test and hence it helps to use unique node label for scheduling.
This commit is contained in:
parent
18cc11566f
commit
9d78c96e56
@ -49,7 +49,7 @@ type cleanupFuncs func()
|
||||
|
||||
const (
|
||||
csiNodeLimitUpdateTimeout = 5 * time.Minute
|
||||
csiPodUnschedulableTimeout = 2 * time.Minute
|
||||
csiPodUnschedulableTimeout = 5 * time.Minute
|
||||
)
|
||||
|
||||
var _ = utils.SIGDescribe("CSI mock volume", func() {
|
||||
@ -310,7 +310,8 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
|
||||
// define volume limit to be 2 for this test
|
||||
|
||||
var err error
|
||||
init(testParameters{nodeSelectorKey: "node-attach-limit-csi", attachLimit: 2})
|
||||
nodeSelectorKey := fmt.Sprintf("attach-limit-csi-%s", f.Namespace.Name)
|
||||
init(testParameters{nodeSelectorKey: nodeSelectorKey, attachLimit: 2})
|
||||
defer cleanup()
|
||||
nodeName := m.config.ClientNodeName
|
||||
attachKey := v1.ResourceName(volumeutil.GetCSIAttachLimitKey(m.provisioner))
|
||||
|
Loading…
Reference in New Issue
Block a user