ShortURL: Set same generateName for old and new API endpoints (#113368)

This commit is contained in:
Ezequiel Victorero
2025-11-03 17:50:02 -03:00
committed by GitHub
parent f56fec2c10
commit 126e6dbcd8
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ func (sk8s *shortURLK8sHandler) createKubernetesShortURLsHandler(c *contextmodel
c.Logger.Debug("Creating short URL", "path", cmd.Path)
obj := shorturl.LegacyCreateCommandToUnstructured(cmd)
obj.SetGenerateName("u") // becomes a prefix
obj.SetGenerateName("s") // becomes a prefix
out, err := client.Create(c.Req.Context(), &obj, v1.CreateOptions{})
if err != nil {