feat: change the names of the connections to the registry

This commit is contained in:
Juan Pablo Villafáñez
2025-09-08 17:32:35 +02:00
committed by Jörn Friedrich Dreyer
parent ca2dc823ef
commit 925444a0b3
4 changed files with 23 additions and 3 deletions
@@ -5,6 +5,7 @@ import (
"strconv"
"strings"
"github.com/opencloud-eu/opencloud/pkg/generators"
"github.com/opencloud-eu/opencloud/services/storage-users/pkg/config"
)
@@ -57,7 +58,7 @@ func StorageUsersConfigFromStruct(cfg *config.Config) map[string]interface{} {
"tls-insecure": cfg.Events.TLSInsecure,
"tls-root-ca-cert": cfg.Events.TLSRootCaCertPath,
"enable-tls": cfg.Events.EnableTLS,
"name": "storage-users-eventsmiddleware",
"name": generators.GenerateConnectionName(cfg.Service.Name, generators.NTYPE_BUS),
"username": cfg.Events.AuthUsername,
"password": cfg.Events.AuthPassword,
},