Merge pull request #117216 from gnufied/fix-azure-disk-e2e

Fix azure disk e2e after migration and while using external CCM
This commit is contained in:
Kubernetes Prow Robot 2023-04-12 08:34:32 -07:00 committed by GitHub
commit bd24043551
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1443,7 +1443,7 @@ func (a *azureDiskDriver) CreateVolume(ctx context.Context, config *storageframe
// so pods should be also scheduled there.
config.ClientNodeSelection = e2epod.NodeSelection{
Selector: map[string]string{
v1.LabelFailureDomainBetaZone: zone,
v1.LabelTopologyZone: zone,
},
}
}
@ -1745,6 +1745,10 @@ func getInlineVolumeZone(ctx context.Context, f *framework.Framework) string {
if ok {
return zone
}
topologyZone, ok := node.Labels[v1.LabelTopologyZone]
if ok {
return topologyZone
}
return ""
}