@@ -129,15 +129,15 @@ var _ = Describe("volumeSet", func() {
129129 Container : & api.ContainerSpec {
130130 Mounts : []api.Mount {
131131 {
132- Type : api .MountTypeCSI ,
132+ Type : api .MountTypeCluster ,
133133 Source : v1 .Spec .Group ,
134134 Target : "/var/spool/mail" ,
135135 }, {
136136 Type : api .MountTypeBind ,
137137 Source : "/var/run/docker.sock" ,
138138 Target : "/var/run/docker.sock" ,
139139 }, {
140- Type : api .MountTypeCSI ,
140+ Type : api .MountTypeCluster ,
141141 Source : v2 .Spec .Annotations .Name ,
142142 Target : "/srv/www" ,
143143 ReadOnly : true ,
@@ -444,7 +444,7 @@ var _ = Describe("volumeSet", func() {
444444
445445 It ("should choose and return an available volume" , func () {
446446 mount := & api.Mount {
447- Type : api .MountTypeCSI ,
447+ Type : api .MountTypeCluster ,
448448 Source : "volumeName1" ,
449449 }
450450 volumeID := vs .isVolumeAvailableOnNode (mount , node )
@@ -453,7 +453,7 @@ var _ = Describe("volumeSet", func() {
453453
454454 It ("should return an empty string if there are no available volumes" , func () {
455455 mount := & api.Mount {
456- Type : api .MountTypeCSI ,
456+ Type : api .MountTypeCluster ,
457457 Source : "volumeNameNotReal" ,
458458 }
459459 volumeID := vs .isVolumeAvailableOnNode (mount , node )
@@ -462,7 +462,7 @@ var _ = Describe("volumeSet", func() {
462462
463463 It ("should specify one volume from a group, if the source is a group" , func () {
464464 mount := & api.Mount {
465- Type : api .MountTypeCSI ,
465+ Type : api .MountTypeCluster ,
466466 Source : "group:someVolumeGroup" ,
467467 }
468468 volumeID := vs .isVolumeAvailableOnNode (mount , node )
@@ -480,20 +480,20 @@ var _ = Describe("volumeSet", func() {
480480 vs .addOrUpdateVolume (v3 )
481481 mounts := []api.Mount {
482482 {
483- Type : api .MountTypeCSI ,
483+ Type : api .MountTypeCluster ,
484484 Source : "group:volumeGroup" ,
485485 Target : "/somedir" ,
486486 ReadOnly : true ,
487487 }, {
488- Type : api .MountTypeCSI ,
488+ Type : api .MountTypeCluster ,
489489 Source : v2 .Spec .Annotations .Name ,
490490 Target : "/someOtherDir" ,
491491 }, {
492492 Type : api .MountTypeBind ,
493493 Source : "/some/subdir" ,
494494 Target : "/some/container/dir" ,
495495 }, {
496- Type : api .MountTypeCSI ,
496+ Type : api .MountTypeCluster ,
497497 Source : v3 .Spec .Annotations .Name ,
498498 Target : "/some/third/dir" ,
499499 },
@@ -569,12 +569,12 @@ var _ = Describe("volumeSet", func() {
569569 Container : & api.ContainerSpec {
570570 Mounts : []api.Mount {
571571 {
572- Type : api .MountTypeCSI ,
572+ Type : api .MountTypeCluster ,
573573 Source : volumes [i ].Spec .Annotations .Name ,
574574 Target : "bar" ,
575575 },
576576 {
577- Type : api .MountTypeCSI ,
577+ Type : api .MountTypeCluster ,
578578 Source : allVolume .Spec .Annotations .Name ,
579579 Target : "baz" ,
580580 },
0 commit comments