- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for TearDownAt (0.15 sec)
-
pkg/volume/flexvolume/unmounter.go
runner exec.Interface } var _ volume.Unmounter = &flexVolumeUnmounter{} // Unmounter interface func (f *flexVolumeUnmounter) TearDown() error { path := f.GetPath() return f.TearDownAt(path) } func (f *flexVolumeUnmounter) TearDownAt(dir string) error { pathExists, pathErr := mount.PathExists(dir) if pathErr != nil { // only log warning here since plugins should anyways have to deal with errors
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 14 13:58:56 UTC 2021 - 1.9K bytes - Viewed (0) -
pkg/volume/flexvolume/unmounter-defaults.go
*/ package flexvolume import ( "k8s.io/klog/v2" "k8s.io/mount-utils" ) type unmounterDefaults flexVolumeUnmounter func (f *unmounterDefaults) TearDownAt(dir string) error { klog.Warning(logPrefix(f.plugin), "using default TearDownAt for ", dir) return mount.CleanupMountPoint(dir, f.mounter, false)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 17 04:51:24 UTC 2020 - 876 bytes - Viewed (0) -
pkg/volume/csi/csi_mounter.go
} } // volume.Unmounter methods var _ volume.Unmounter = &csiMountMgr{} func (c *csiMountMgr) TearDown() error { return c.TearDownAt(c.GetPath()) } func (c *csiMountMgr) TearDownAt(dir string) error { klog.V(4).Infof(log("Unmounter.TearDownAt(%s)", dir)) volID := c.volumeID csi, err := c.csiClientGetter.Get() if err != nil { // Treat the absence of the CSI driver as a transient error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 30 10:47:59 UTC 2024 - 21K bytes - Viewed (0) -
pkg/volume/git_repo/git_repo.go
// TearDown simply deletes everything in the directory. func (c *gitRepoVolumeUnmounter) TearDown() error { return c.TearDownAt(c.GetPath()) } // TearDownAt simply deletes everything in the directory. func (c *gitRepoVolumeUnmounter) TearDownAt(dir string) error { return volumeutil.UnmountViaEmptyDir(dir, c.plugin.host, c.volName, wrappedVolumeSpec(), c.podUID) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 8.2K bytes - Viewed (0) -
pkg/volume/flexvolume/unmounter_test.go
plugin.runner = fakeRunner( assertDriverCall(t, notSupportedOutput(), unmountCmd, rootDir+"/mount-dir"), ) u, _ := plugin.newUnmounterInternal("volName", types.UID("poduid"), mounter, plugin.runner) u.TearDownAt(rootDir + "/mount-dir")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 17 04:51:24 UTC 2020 - 1.1K bytes - Viewed (0) -
pkg/volume/hostpath/host_path.go
// TearDown does nothing. func (c *hostPathUnmounter) TearDown() error { return nil } // TearDownAt does not make sense for host paths - probably programmer error. func (c *hostPathUnmounter) TearDownAt(dir string) error { return fmt.Errorf("TearDownAt() does not make sense for host paths") } // hostPathProvisioner implements a Provisioner for the HostPath plugin
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 15.3K bytes - Viewed (0) -
pkg/volume/projected/projected.go
return c.TearDownAt(c.GetPath()) } func (c *projectedVolumeUnmounter) TearDownAt(dir string) error { klog.V(3).Infof("Tearing down volume %v for pod %v at %v", c.volName, c.podUID, dir) wrapped, err := c.plugin.host.NewWrapperUnmounter(c.volName, wrappedVolumeSpec(), c.podUID) if err != nil { return err } if err = wrapped.TearDownAt(dir); err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 12.8K bytes - Viewed (0) -
pkg/volume/csi/csi_test.go
} csiUnmounter := unmounter.(*csiMountMgr) csiUnmounter.csiClient = csiClient if err := csiUnmounter.TearDownAt(mounter.GetPath()); err != nil { t.Fatal("csiTest.VolumeAll unmounter.TearDownAt failed:", err) } t.Log("csiTest.VolumeAll unmounter.TearDownAt done OK for dir:", mounter.GetPath()) // unmount device t.Log("csiTest.VolumeAll Unmouting device...")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 15:55:13 UTC 2022 - 21.1K bytes - Viewed (0) -
pkg/volume/configmap/configmap.go
*configMapVolume } var _ volume.Unmounter = &configMapVolumeUnmounter{} func (c *configMapVolumeUnmounter) TearDown() error { return c.TearDownAt(c.GetPath()) } func (c *configMapVolumeUnmounter) TearDownAt(dir string) error { return volumeutil.UnmountViaEmptyDir(dir, c.plugin.host, c.volName, wrappedVolumeSpec(), c.podUID) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 10K bytes - Viewed (0) -
pkg/volume/nfs/nfs.go
} return nil } var _ volume.Unmounter = &nfsUnmounter{} type nfsUnmounter struct { *nfs } func (c *nfsUnmounter) TearDown() error { return c.TearDownAt(c.GetPath()) } func (c *nfsUnmounter) TearDownAt(dir string) error { // Use extensiveMountPointCheck to consult /proc/mounts. We can't use faster // IsLikelyNotMountPoint (lstat()), since there may be root_squash on the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 9.5K bytes - Viewed (0)