Skip to content

Commit 0c19f85

Browse files
authored
fix: shortuuid.NewWithAlphabet (#17)
1 parent d21cc96 commit 0c19f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/webhook/v1/pod_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (m *TensorFusionPodMutator) patchTFClient(pod *corev1.Pod, tfReq []TFReq) (
187187
}
188188

189189
// add connection env
190-
connectionName := fmt.Sprintf("%s-tf-worker-%s", pod.GenerateName+container.Name, shortuuid.New())
190+
connectionName := fmt.Sprintf("%s-tf-worker-%s", pod.GenerateName+container.Name, shortuuid.NewWithAlphabet("123456789abcdefghijkmnopqrstuvwxy"))
191191
connectionNamespace := pod.Namespace
192192

193193
container.Env = append(container.Env, corev1.EnvVar{

0 commit comments

Comments
 (0)