Set zone label selector for preprovisioned AWS in-tree tests

This commit is contained in:
Matthew Wong 2022-03-14 15:38:10 -07:00
parent 2acc22a9a0
commit 7f638b45b7

View File

@ -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{