mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #219 from thockin/netctr
Escape manifest IDs when hunting the network container.
This commit is contained in:
commit
56bf47bbf8
@ -620,7 +620,7 @@ func (kl *Kubelet) networkContainerExists(manifest *api.ContainerManifest) (stri
|
||||
return "", false, err
|
||||
}
|
||||
for _, name := range pods {
|
||||
if strings.Contains(name, containerNamePrefix+"--"+networkContainerName+"--"+manifest.Id+"--") {
|
||||
if strings.Contains(name, containerNamePrefix+"--"+networkContainerName+"--"+escapeDash(manifest.Id)+"--") {
|
||||
return name, true, nil
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user