Skip to content

Commit

Permalink
Merge pull request #2777 from FabianKramm/main
Browse files Browse the repository at this point in the history
fix: use string hash instead of whole name
  • Loading branch information
lizardruss authored Jan 2, 2024
2 parents 9d88f77 + 87cbd6d commit 8976e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/devspace/services/podreplace/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
}
Expand Down

0 comments on commit 8976e57

Please sign in to comment.