kubelet/container: Move kubelet.volumeMap to container.VolumeMap.

This is a quick fix to solve circular dependency problem when
rkt references volume maps.
This commit is contained in:
Yifan Gu
2015-05-06 16:50:57 -07:00
parent d6ea33fbb5
commit 8715c54bd3
5 changed files with 14 additions and 11 deletions

View File

@@ -23,6 +23,7 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/types"
"github.com/GoogleCloudPlatform/kubernetes/pkg/volume"
)
type Version interface {
@@ -205,6 +206,8 @@ type RunContainerOptions struct {
CgroupParent string
}
type VolumeMap map[string]volume.Volume
type Pods []*Pod
// FindPodByID finds and returns a pod in the pod list by UID. It will return an empty pod