changed how peerId and namespace are concatenated to name admiralty resources
This commit is contained in:
parent
fd6186c6df
commit
b372c10ab0
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user