p is heavy (1112 bytes); consider passing it by pointer
343 }
344}
345
346func isPodReady(p corev1.Pod) bool {347 for _, condition := range p.Status.Conditions {
348 if condition.Type != corev1.ContainersReady {
349 continue
Description
When a param big in size (more than 80 bytes) is passed to another function, it is better to pass a pointer to the value around, rather than the value itself.
Bad practice
func f(x [1024]int) {}
Recommended
func f(x *[1024]int) {}