Add passthrough for MountOptions for NodeStageVolume for CSI

This commit is contained in:
David Zhu
2019-07-15 18:28:12 -07:00
parent a10eced56b
commit 831cd29f4e
7 changed files with 50 additions and 12 deletions

View File

@@ -42,6 +42,12 @@ func TestMain(m *testing.M) {
os.Exit(m.Run())
}
func makeTestPVWithMountOptions(name string, sizeGig int, driverName, volID string, mountOptions []string) *api.PersistentVolume {
pv := makeTestPV(name, sizeGig, driverName, volID)
pv.Spec.MountOptions = mountOptions
return pv
}
func makeTestPV(name string, sizeGig int, driverName, volID string) *api.PersistentVolume {
return &api.PersistentVolume{
ObjectMeta: meta.ObjectMeta{