Skip to content

Commit 87cbd6d

Browse files
committed
fix: use string hash instead of whole name
Signed-off-by: Fabian Kramm <[email protected]>
1 parent 712a513 commit 87cbd6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/devspace/services/podreplace/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func replaceCommand(ctx devspacecontext.Context, devPod *latest.DevPod, devConta
306306

307307
// should we inject devspace restart helper?
308308
if injectRestartHelper {
309-
annotationName := restartHelperAnnotation + container.Name
309+
annotationName := restartHelperAnnotation + strings.ToLower(hash.String(container.Name))[0:10]
310310
if podTemplate.Annotations == nil {
311311
podTemplate.Annotations = map[string]string{}
312312
}

0 commit comments

Comments
 (0)