Skip migrated metrics for Windows CSI tests

The Windows CSI migration test are failing due to issue https://github.com/kubernetes/kubernetes/issues/102893

Change-Id: I8c4c1b376a915f1a0982a9be5e35960886cc77bf
This commit is contained in:
Jing Xu 2021-06-15 15:21:35 -07:00
parent 74df637ac3
commit 8fb909291f

View File

@ -206,6 +206,14 @@ func newMigrationOpCheck(cs clientset.Interface, pluginName string) *migrationOp
moc.skipCheck = true moc.skipCheck = true
return &moc return &moc
} }
// TODO: temporarily skip metrics check due to issue #[102893](https://github.com/kubernetes/kubernetes/issues/102893)
// Will remove it once the issue is fixed
if framework.NodeOSDistroIs("windows") {
moc.skipCheck = true
return &moc
}
moc.oldInTreeOps, moc.oldMigratedOps = getMigrationVolumeOpCounts(cs, pluginName) moc.oldInTreeOps, moc.oldMigratedOps = getMigrationVolumeOpCounts(cs, pluginName)
return &moc return &moc
} }