Return no volume match if prebound PV node affinity doesn't match node

This commit is contained in:
Michelle Au
2017-11-29 17:29:58 -08:00
parent 2aeace402a
commit c26debecef
3 changed files with 18 additions and 5 deletions

View File

@@ -1218,7 +1218,7 @@ func TestFindMatchVolumeWithNode(t *testing.T) {
pvc.Spec.StorageClassName = &classWait
pvc.Name = "claim02"
}),
node: node2,
node: node3,
},
"success-bad-and-good-node-affinity": {
expectedMatch: "affinity-pv3",