// PodStatusEqual checks that both slices have the same number // of entries and that the pairs of entries are semantically // equivalent. // // The order of the entries matters: two slices with semantically // equivalent entries in different order are not equal. This is // done for the sake of performance because typically the // order of entries doesn't change. func PodStatusEqual(statusA, statusB []corev1.PodResourceClaimStatus) bool { … }