mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #108696 from wongma7/zonepreprovisioned
Set zone label selector for preprovisioned AWS in-tree tests
This commit is contained in:
commit
eedd2b7cb4
@ -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 {
|
func (a *awsDriver) CreateVolume(config *storageframework.PerTestConfig, volType storageframework.TestVolType) storageframework.TestVolume {
|
||||||
zone := getInlineVolumeZone(config.Framework)
|
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,
|
// PD will be created in framework.TestContext.CloudConfig.Zone zone,
|
||||||
// so pods should be also scheduled there.
|
// so pods should be also scheduled there.
|
||||||
config.ClientNodeSelection = e2epod.NodeSelection{
|
config.ClientNodeSelection = e2epod.NodeSelection{
|
||||||
|
Loading…
Reference in New Issue
Block a user