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

Function hashConfig

pkg/devspace/services/podreplace/builder.go:462–469  ·  view source on GitHub ↗
(replacePod *latest.DevPod)

Source from the content-addressed store, hash-verified

460}
461
462func hashConfig(replacePod *latest.DevPod) (string, error) {
463 out, err := yaml.Marshal(replacePod)
464 if err != nil {
465 return "", err
466 }
467
468 return hash.String(string(out)), nil
469}
470
471func replaceImage(ctx devspacecontext.Context, devPod *latest.DevPod, devContainer *latest.DevContainer, podTemplate *corev1.PodTemplateSpec) error {
472 if devContainer.DevImage == "" {

Callers 2

updateNeededFunction · 0.85
buildDeploymentFunction · 0.85

Calls 1

StringFunction · 0.92

Tested by

no test coverage detected