mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Set zone label selector for preprovisioned AWS in-tree tests
This commit is contained in:
parent
2acc22a9a0
commit
7f638b45b7
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user