Skip to content

Commit 8976e57

Browse files
authored
Merge pull request #2777 from FabianKramm/main
fix: use string hash instead of whole name
2 parents 9d88f77 + 87cbd6d commit 8976e57

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)