Skip to content

Commit

Permalink
Set zone label selector for preprovisioned AWS in-tree tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wongma7 committed Mar 14, 2022
1 parent 2acc22a commit 7f638b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/storage/drivers/in_tree.go
Expand Up @@ -1781,7 +1781,7 @@ func (a *awsDriver) PrepareTest(f *framework.Framework) (*storageframework.PerTe

func (a *awsDriver) CreateVolume(config *storageframework.PerTestConfig, volType storageframework.TestVolType) storageframework.TestVolume {
zone := getInlineVolumeZone(config.Framework)
if volType == storageframework.InlineVolume {
if volType == storageframework.InlineVolume || volType == storageframework.PreprovisionedPV {
// PD will be created in framework.TestContext.CloudConfig.Zone zone,
// so pods should be also scheduled there.
config.ClientNodeSelection = e2epod.NodeSelection{
Expand Down

0 comments on commit 7f638b4

Please sign in to comment.