(devPodConfig *latest.DevPod)
| 558 | } |
| 559 | |
| 560 | func needPodReplace(devPodConfig *latest.DevPod) bool { |
| 561 | if len(devPodConfig.Patches) > 0 { |
| 562 | return true |
| 563 | } |
| 564 | |
| 565 | needReplace := false |
| 566 | loader.EachDevContainer(devPodConfig, func(devContainer *latest.DevContainer) bool { |
| 567 | if needPodReplaceContainer(devContainer) { |
| 568 | needReplace = true |
| 569 | return false |
| 570 | } |
| 571 | return true |
| 572 | }) |
| 573 | |
| 574 | return needReplace |
| 575 | } |
| 576 | |
| 577 | func needPodReplaceContainer(devContainer *latest.DevContainer) bool { |
| 578 | if devContainer.DevImage != "" { |
no test coverage detected