Use consts defined in api instead of defining another ones.

This commit is contained in:
xiangpengzhao
2018-01-05 11:32:23 +08:00
parent e99ec24595
commit 22ea748809
5 changed files with 23 additions and 28 deletions

View File

@@ -19,6 +19,7 @@ limitations under the License.
package empty_dir
import (
"k8s.io/api/core/v1"
"k8s.io/kubernetes/pkg/util/mount"
)
@@ -27,6 +28,6 @@ type realMountDetector struct {
mounter mount.Interface
}
func (m *realMountDetector) GetMountMedium(path string) (storageMedium, bool, error) {
return mediumUnknown, false, nil
func (m *realMountDetector) GetMountMedium(path string) (v1.StorageMedium, bool, error) {
return v1.StorageMediumDefault, false, nil
}