mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +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) {
|
func (c DockerContainers) FindPodContainer(podFullName, uuid, containerName string) (*docker.APIContainers, bool, uint64) {
|
||||||
for _, dockerContainer := range c {
|
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])
|
dockerManifestID, dockerUUID, dockerContainerName, hash := ParseDockerName(dockerContainer.Names[0])
|
||||||
if dockerManifestID == podFullName &&
|
if dockerManifestID == podFullName &&
|
||||||
(uuid == "" || dockerUUID == uuid) &&
|
(uuid == "" || dockerUUID == uuid) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user