changed how peerId and namespace are concatenated to name admiralty resources

This commit is contained in:
pb 2025-05-16 11:09:57 +02:00
parent fd6186c6df
commit b372c10ab0

View File

@ -539,8 +539,8 @@ func (k *KubernetesService) GetOneNode(context context.Context, executionID stri
// kubernetes ressources to have a unique name, under 63 characters
// and yet identify which peer they are created for
func getConcatenatedName(peerId string, namespace string) string {
s := strings.Split(peerId, "-")[:2]
p := s[0] + "-" + s[1]
s := strings.Split(namespace, "-")[:2]
n := s[0] + "-" + s[1]
return p + "-" + namespace
return peerId + "-" + n
}