Only count mounts that are from other pods

This commit is contained in:
Michelle Au
2018-04-19 15:40:51 -07:00
parent 4761788b2a
commit 6cf8a6606c
8 changed files with 99 additions and 5 deletions

View File

@@ -249,6 +249,10 @@ type VolumeHost interface {
// ex. plugins/kubernetes.io/{PluginName}/{DefaultKubeletVolumeDevicesDirName}/{volumePluginDependentPath}/
GetVolumeDevicePluginDir(pluginName string) string
// GetPodsDir returns the absolute path to a directory where all the pods
// information is stored
GetPodsDir() string
// GetPodVolumeDir returns the absolute path a directory which
// represents the named volume under the named plugin for the given
// pod. If the specified pod does not exist, the result of this call