Skip to content

Commit

Permalink
add random
Browse files Browse the repository at this point in the history
  • Loading branch information
bearslyricattack committed Sep 6, 2024
1 parent 4ec1134 commit 335cf35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ func (r *DevboxReconciler) generateNextCommitHistory(devbox *devboxv1alpha1.Devb

func (r *DevboxReconciler) generateImageName(devbox *devboxv1alpha1.Devbox) string {
now := time.Now()
return fmt.Sprintf("%s/%s/%s:%s", r.CommitImageRegistry, devbox.Namespace, devbox.Name, now.Format("2006-01-02-150405"))
return fmt.Sprintf("%s/%s/%s:%s", r.CommitImageRegistry, devbox.Namespace, devbox.Name, rand.String(5)+"-"+now.Format("2006-01-02-150405"))
}

// SetupWithManager sets up the controller with the Manager.
Expand Down

0 comments on commit 335cf35

Please sign in to comment.