mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Remove call to common unmount routine as Portworx takes care of all umount workflow
This commit is contained in:
parent
779455aa32
commit
bbfda9cdfe
@ -38,7 +38,6 @@ go_library(
|
|||||||
"//pkg/util/mount:go_default_library",
|
"//pkg/util/mount:go_default_library",
|
||||||
"//pkg/util/strings:go_default_library",
|
"//pkg/util/strings:go_default_library",
|
||||||
"//pkg/volume:go_default_library",
|
"//pkg/volume:go_default_library",
|
||||||
"//pkg/volume/util:go_default_library",
|
|
||||||
"//vendor/github.com/golang/glog:go_default_library",
|
"//vendor/github.com/golang/glog:go_default_library",
|
||||||
"//vendor/github.com/libopenstorage/openstorage/api:go_default_library",
|
"//vendor/github.com/libopenstorage/openstorage/api:go_default_library",
|
||||||
"//vendor/github.com/libopenstorage/openstorage/api/client:go_default_library",
|
"//vendor/github.com/libopenstorage/openstorage/api/client:go_default_library",
|
||||||
|
@ -29,7 +29,6 @@ import (
|
|||||||
"k8s.io/kubernetes/pkg/util/mount"
|
"k8s.io/kubernetes/pkg/util/mount"
|
||||||
kstrings "k8s.io/kubernetes/pkg/util/strings"
|
kstrings "k8s.io/kubernetes/pkg/util/strings"
|
||||||
"k8s.io/kubernetes/pkg/volume"
|
"k8s.io/kubernetes/pkg/volume"
|
||||||
"k8s.io/kubernetes/pkg/volume/util"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is the primary entrypoint for volume plugins.
|
// This is the primary entrypoint for volume plugins.
|
||||||
@ -315,11 +314,6 @@ func (c *portworxVolumeUnmounter) TearDown() error {
|
|||||||
// resource was the last reference to that disk on the kubelet.
|
// resource was the last reference to that disk on the kubelet.
|
||||||
func (c *portworxVolumeUnmounter) TearDownAt(dir string) error {
|
func (c *portworxVolumeUnmounter) TearDownAt(dir string) error {
|
||||||
glog.V(4).Infof("Portworx Volume TearDown of %s", dir)
|
glog.V(4).Infof("Portworx Volume TearDown of %s", dir)
|
||||||
// Unmount the bind mount inside the pod
|
|
||||||
if err := util.UnmountPath(dir, c.mounter); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Call Portworx Unmount for Portworx's book-keeping.
|
// Call Portworx Unmount for Portworx's book-keeping.
|
||||||
if err := c.manager.UnmountVolume(c, dir); err != nil {
|
if err := c.manager.UnmountVolume(c, dir); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user