func SortInitContainerStatuses(p *v1.Pod, statuses []v1.ContainerStatus) {
	containers := p.Spec.InitContainers
	current := 0
	for _, container := range containers {
		for j := current; j < len(statuses); j++ {
			if container.Name == statuses[j].Name {
				statuses[current], statuses[j] = statuses[j], statuses[current]
				current++
				break
			}
		}
	}
}
SortInitContainerStatuses ensures that statuses are in the order that their
init container appears in the pod spec
package types
import (
	"net/http"
	"time"
	"k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/types"
)
type HttpGetter interface {
	Get(url string) (*http.Response, error)
}
type Timestamp struct {
	time time.Time
}
func NewTimestamp() *Timestamp {
	return &Timestamp{time.Now()}
}
func ConvertToTimestamp(timeString string) *Timestamp {
	parsed, _ := time.Parse(time.RFC3339Nano, timeString)
	return &Timestamp{parsed}
}
func (t *Timestamp) Get() time.Time {
	return t.time
}
func (t *Timestamp) GetString() string {
	return t.time.Format(time.RFC3339Nano)
}
type SortedContainerStatuses []v1.ContainerStatus
func (s SortedContainerStatuses) Len() int      { return len(s) }
func (s SortedContainerStatuses) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
func (s SortedContainerStatuses) Less(i, j int) bool {
	return s[i].Name < s[j].Name
}