-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override routes from certain domains with the hostname template #19418
Override routes from certain domains with the hostname template #19418
Conversation
Still to add tests but @cldmnky can you please check if this works for you? Thx |
Will test it, looks like it will solve our issue! |
61938aa
to
570ef0f
Compare
@ramr It works perfectly for us! Thanks! |
flake #19058 |
/retest |
/test gcp |
570ef0f
to
fdb3458
Compare
/test integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just spelling nits. Thanks @ramr
/approve
test/extended/router/scoped.go
Outdated
@@ -165,6 +165,65 @@ var _ = g.Describe("[Conformance][Area:Networking][Feature:Router]", func() { | |||
o.Expect(status).To(o.Equal(kapi.ConditionTrue)) | |||
o.Expect(condition.LastTransitionTime).NotTo(o.BeNil()) | |||
}) | |||
|
|||
g.It("should override the route host for overriden domains with a custom value", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overriden -> overridden
test/extended/router/scoped.go
Outdated
execPodName := exutil.CreateExecPodOrFail(oc.AdminKubeClient().CoreV1(), ns, "execpod") | ||
defer func() { oc.AdminKubeClient().CoreV1().Pods(ns).Delete(execPodName, metav1.NewDeleteOptions(1)) }() | ||
|
||
g.By(fmt.Sprintf("creating a scoped router with overriden domains from a config file %q", configPath)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -104,6 +132,36 @@ objects: | |||
ports: | |||
- targetPort: http | |||
|
|||
# routes that contain overriden domains |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: knobunc, ramr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
2bc100a
to
de9bf61
Compare
@knobunc made the requested changes + squashed the commits. PTAL |
/retest |
with the subdomain/hostname-template that the router environment is running under. And fix typos as per @knobunc review Fixes issue openshift#16797
de9bf61
to
e2b68bc
Compare
/test gcp |
/lgtm Thanks @ramr |
/test gcp |
/retest |
/test gcp |
/test unit |
/retest |
Allow routes from certain domains (ala defaulted domains) to be replaced with the subdomain/hostname-template the router environment is running under.
Fixes issue #16797