exec support init container

This commit is contained in:
AdoHe
2016-06-03 02:05:15 -04:00
parent 77de942e08
commit 1cfcb24f37
3 changed files with 6 additions and 5 deletions

View File

@@ -332,6 +332,11 @@ func podHasContainerWithName(pod *api.Pod, containerName string) bool {
return true
}
}
for _, c := range pod.Spec.InitContainers {
if c.Name == containerName {
return true
}
}
return false
}