mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
commit
51c54a1e2f
@ -937,12 +937,14 @@ func (s *Server) checkpoint(request *restful.Request, response *restful.Response
|
|||||||
for _, container := range pod.Spec.Containers {
|
for _, container := range pod.Spec.Containers {
|
||||||
if container.Name == containerName {
|
if container.Name == containerName {
|
||||||
found = true
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if !found {
|
if !found {
|
||||||
for _, container := range pod.Spec.InitContainers {
|
for _, container := range pod.Spec.InitContainers {
|
||||||
if container.Name == containerName {
|
if container.Name == containerName {
|
||||||
found = true
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -950,6 +952,7 @@ func (s *Server) checkpoint(request *restful.Request, response *restful.Response
|
|||||||
for _, container := range pod.Spec.EphemeralContainers {
|
for _, container := range pod.Spec.EphemeralContainers {
|
||||||
if container.Name == containerName {
|
if container.Name == containerName {
|
||||||
found = true
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user