Delete client node selector during volume creation

This commit is contained in:
Ernest Wong 2019-11-26 13:20:59 -08:00
parent dd76fdfce5
commit 657a3a3294
No known key found for this signature in database
GPG Key ID: 2FA4704546158B3F

View File

@ -1425,7 +1425,9 @@ func InitAzureDiskDriver() testsuites.TestDriver {
},
SupportedFsType: sets.NewString(
"", // Default fsType
"ext3",
"ext4",
"xfs",
),
Capabilities: map[testsuites.Capability]bool{
testsuites.CapPersistence: true,
@ -1513,13 +1515,6 @@ func (a *azureDiskDriver) PrepareTest(f *framework.Framework) (*testsuites.PerTe
func (a *azureDiskDriver) CreateVolume(config *testsuites.PerTestConfig, volType testpatterns.TestVolType) testsuites.TestVolume {
ginkgo.By("creating a test azure disk volume")
if volType == testpatterns.InlineVolume {
// Volume will be created in framework.TestContext.CloudConfig.Zone zone,
// so pods should be also scheduled there.
config.ClientNodeSelector = map[string]string{
v1.LabelZoneFailureDomain: framework.TestContext.CloudConfig.Zone,
}
}
volumeName, err := e2epv.CreatePDWithRetry()
framework.ExpectNoError(err)
return &azureDiskVolume{