Skip to content

Commit ffdaf6d

Browse files
author
OpenShift Bot
authored
Merge pull request #12976 from JacobTanenbaum/BZ1414956
Merged by openshift-bot
2 parents 3f36d2e + 23ce2ca commit ffdaf6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/route/allocation/simple/plugin.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package simple
22

33
import (
44
"fmt"
5+
"strings"
56

67
"github.com/golang/glog"
78
kvalidation "k8s.io/kubernetes/pkg/util/validation"
@@ -50,5 +51,5 @@ func (p *SimpleAllocationPlugin) GenerateHostname(route *routeapi.Route, shard *
5051
if len(route.Name) == 0 || len(route.Namespace) == 0 {
5152
return ""
5253
}
53-
return fmt.Sprintf("%s-%s.%s", route.Name, route.Namespace, shard.DNSSuffix)
54+
return fmt.Sprintf("%s-%s.%s", strings.Replace(route.Name, ".", "-", -1), route.Namespace, shard.DNSSuffix)
5455
}

0 commit comments

Comments
 (0)