mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
dockertools: add todo for container lookup
This commit is contained in:
parent
dbb2342688
commit
8f010c3ec0
@ -173,6 +173,7 @@ type DockerContainers map[DockerID]*docker.APIContainers
|
||||
|
||||
func (c DockerContainers) FindPodContainer(podFullName, uuid, containerName string) (*docker.APIContainers, bool, uint64) {
|
||||
for _, dockerContainer := range c {
|
||||
// TODO(proppy): build the docker container name and do a map lookup instead?
|
||||
dockerManifestID, dockerUUID, dockerContainerName, hash := ParseDockerName(dockerContainer.Names[0])
|
||||
if dockerManifestID == podFullName &&
|
||||
(uuid == "" || dockerUUID == uuid) &&
|
||||
|
Loading…
Reference in New Issue
Block a user