Skip to content

Commit

Permalink
Merge pull request #75124 from gnufied/fix-attach-limit-flake
Browse files Browse the repository at this point in the history
Fix volume attach limit flake
  • Loading branch information
k8s-ci-robot committed Mar 8, 2019
2 parents fe74317 + 9d78c96 commit e8daa90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/storage/csi_mock_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit e8daa90

Please sign in to comment.