(podSpec1, podSpec2 *kcore.PodSpec)
| 420 | } |
| 421 | |
| 422 | func PodComputesEqual(podSpec1, podSpec2 *kcore.PodSpec) bool { |
| 423 | cpu1, mem1, gpu1, inf1 := TotalPodCompute(podSpec1) |
| 424 | cpu2, mem2, gpu2, inf2 := TotalPodCompute(podSpec2) |
| 425 | return cpu1.Equal(cpu2) && mem1.Equal(mem2) && gpu1 == gpu2 && inf1 == inf2 |
| 426 | } |
| 427 | |
| 428 | func TotalPodCompute(podSpec *kcore.PodSpec) (Quantity, Quantity, int64, int64) { |
| 429 | totalCPU := Quantity{} |
nothing calls this directly
no test coverage detected