Merge pull request #108696 from wongma7/zonepreprovisioned

Set zone label selector for preprovisioned AWS in-tree tests
This commit is contained in:
Kubernetes Prow Robot 2022-08-01 17:46:28 -07:00 committed by GitHub
commit eedd2b7cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1784,7 +1784,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{