Move docker label related functions into labels.go and add pod name, pod namespace and pod uid into docker label

This commit is contained in:
Lantao Liu
2015-10-29 22:42:25 -07:00
parent bffdd242d8
commit b3585a5209
5 changed files with 98 additions and 47 deletions

View File

@@ -211,6 +211,7 @@ func (p throttledDockerPuller) IsImagePresent(name string) (bool, error) {
return p.puller.IsImagePresent(name)
}
// TODO (random-liu) Almost never used, should we remove this?
// DockerContainers is a map of containers
type DockerContainers map[kubetypes.DockerID]*docker.APIContainers