func GetAnyContainerByName(containers []core.Container, name string) (core.Container, bool) {
	for _, c := range containers {
		if c.Name == name {
			return c, true
		}
	}
	return core.Container{}, false
}
GetAnyContainerByName returns the container in the given containers with the given name.
Returns false if not found.
package k8sutil
import core "k8s.io/api/core/v1"
func GetContainerByName(p *core.Pod, name string) (core.Container, bool) {
	for _, c := range p.Spec.Containers {
		if c.Name == name {
			return c, true
		}
	}
	return core.Container{}, false
}
func GetContainerStatusByName(p *core.Pod, name string) (core.ContainerStatus, bool) {
	for _, c := range p.Status.ContainerStatuses {
		if c.Name == name {
			return c, true
		}
	}
	return core.ContainerStatus{}, false
}