MCPcopy Index your code
hub / github.com/devspace-sh/devspace / needPodReplace

Function needPodReplace

pkg/devspace/devpod/devpod.go:560–575  ·  view source on GitHub ↗
(devPodConfig *latest.DevPod)

Source from the content-addressed store, hash-verified

558}
559
560func 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
577func needPodReplaceContainer(devContainer *latest.DevContainer) bool {
578 if devContainer.DevImage != "" {

Callers 1

startMethod · 0.85

Calls 2

EachDevContainerFunction · 0.92
needPodReplaceContainerFunction · 0.85

Tested by

no test coverage detected