mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Delete client node selector during volume creation
This commit is contained in:
parent
dd76fdfce5
commit
657a3a3294
@ -1425,7 +1425,9 @@ func InitAzureDiskDriver() testsuites.TestDriver {
|
|||||||
},
|
},
|
||||||
SupportedFsType: sets.NewString(
|
SupportedFsType: sets.NewString(
|
||||||
"", // Default fsType
|
"", // Default fsType
|
||||||
|
"ext3",
|
||||||
"ext4",
|
"ext4",
|
||||||
|
"xfs",
|
||||||
),
|
),
|
||||||
Capabilities: map[testsuites.Capability]bool{
|
Capabilities: map[testsuites.Capability]bool{
|
||||||
testsuites.CapPersistence: true,
|
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 {
|
func (a *azureDiskDriver) CreateVolume(config *testsuites.PerTestConfig, volType testpatterns.TestVolType) testsuites.TestVolume {
|
||||||
ginkgo.By("creating a test azure disk volume")
|
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()
|
volumeName, err := e2epv.CreatePDWithRetry()
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
return &azureDiskVolume{
|
return &azureDiskVolume{
|
||||||
|
Loading…
Reference in New Issue
Block a user