Skip to content

Commit

Permalink
fix: append hyphen suffix to worker pod name prefixes (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5457 authored Mar 11, 2025
1 parent c465980 commit 985f2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/tensorfusionworkload_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (r *TensorFusionWorkloadReconciler) tryStartWorker(
workload *tfv1.TensorFusionWorkload,
) (*corev1.Pod, error) {
port := workerGenerator.AllocPort()
pod, err := workerGenerator.GenerateWorkerPod(gpu, workload.Name, workload.Namespace, port, workload.Spec.Resources.Limits)
pod, err := workerGenerator.GenerateWorkerPod(gpu, workload.Name+"-", workload.Namespace, port, workload.Spec.Resources.Limits)
if err != nil {
return nil, fmt.Errorf("generate worker pod %w", err)
}
Expand Down

0 comments on commit 985f2d2

Please sign in to comment.