- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for mountRefs (0.14 sec)
-
pkg/volume/util/util_test.go
} }) } } func TestHasMountRefs(t *testing.T) { testCases := map[string]struct { mountPath string mountRefs []string expected bool }{ "plugin mounts only": { mountPath: "/var/lib/kubelet/plugins/kubernetes.io/some-plugin/mounts/volume-XXXX", mountRefs: []string{ "/home/somewhere/var/lib/kubelet/plugins/kubernetes.io/some-plugin/mounts/volume-XXXX",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.7K bytes - Viewed (0) -
pkg/volume/util/util.go
fsUser = nil return false } if fsUser == nil { fsUser = runAsUser } return true }) return fsUser } // HasMountRefs checks if the given mountPath has mountRefs. // TODO: this is a workaround for the unmount device issue caused by gci mounter. // In GCI cluster, if gci mounter is used for mounting, the container started by mounter
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.8K bytes - Viewed (0) -
pkg/volume/testing/testing.go
} fakeVolume := plugin.getFakeVolume(&plugin.Mounters) fakeVolume.Lock() defer fakeVolume.Unlock() fakeVolume.PodUID = pod.UID fakeVolume.VolName = spec.Name() fakeVolume.Plugin = plugin fakeVolume.MetricsNil = volume.MetricsNil{} return fakeVolume, nil } func (plugin *FakeVolumePlugin) GetMounters() (Mounters []*FakeVolume) { plugin.RLock() defer plugin.RUnlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0)