From 87cbd6dd5ef07eee1005c9a75f803c0f9ef0c0d3 Mon Sep 17 00:00:00 2001 From: Fabian Kramm Date: Thu, 21 Dec 2023 09:05:38 +0100 Subject: [PATCH] fix: use string hash instead of whole name Signed-off-by: Fabian Kramm --- pkg/devspace/services/podreplace/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/devspace/services/podreplace/builder.go b/pkg/devspace/services/podreplace/builder.go index c389e526ce..0134220351 100644 --- a/pkg/devspace/services/podreplace/builder.go +++ b/pkg/devspace/services/podreplace/builder.go @@ -306,7 +306,7 @@ func replaceCommand(ctx devspacecontext.Context, devPod *latest.DevPod, devConta // should we inject devspace restart helper? if injectRestartHelper { - annotationName := restartHelperAnnotation + container.Name + annotationName := restartHelperAnnotation + strings.ToLower(hash.String(container.Name))[0:10] if podTemplate.Annotations == nil { podTemplate.Annotations = map[string]string{} }