Skip to content

Commit 614c0f6

Browse files
author
OpenShift Bot
committed
Merge pull request #9159 from Miciah/bz1333939-disable-custom-route-hosts-and-certificates-2
Merged by openshift-bot
2 parents 5c82a30 + 85f67f5 commit 614c0f6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pkg/router/template/router.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,10 @@ func (r *templateRouter) AddRoute(id string, route *routeapi.Route, host string)
428428
backendKey := r.routeKey(route)
429429

430430
config := ServiceAliasConfig{
431-
Host: host,
432-
Path: route.Spec.Path,
431+
Name: route.Name,
432+
Namespace: route.Namespace,
433+
Host: host,
434+
Path: route.Spec.Path,
433435
}
434436

435437
if route.Spec.Port != nil {

pkg/router/template/types.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ type ServiceUnit struct {
1919

2020
// ServiceAliasConfig is a route for a service. Uniquely identified by host + path.
2121
type ServiceAliasConfig struct {
22+
// Name is the user-specified name of the route.
23+
Name string
24+
// Namespace is the namespace of the route.
25+
Namespace string
2226
// Host is a required host name ie. www.example.com
2327
Host string
2428
// Path is an optional path ie. www.example.com/myservice where "myservice" is the path

0 commit comments

Comments
 (0)