Skip to content
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

Routers should be able to override the host value on Routes #5725

Merged
merged 3 commits into from
Dec 16, 2015

Conversation

smarterclayton
Copy link
Contributor

Add --hostname-template which takes a format like ${name}-${namespace}.myapps.com for defaulting and add --override-hostname to allow forcing of the route.

[test]

// Complete converts string representations of field and label selectors to their parsed equivalent, or
// returns an error.
func (o *RouterSelection) Complete() error {
if len(o.HostnameTemplate) == 0 && o.OverrideHostname {
return fmt.Errorf("--override-hostname requires that --hostname-template be specified")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is specified?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"be" is correct (subjunctive mood).

@smarterclayton smarterclayton force-pushed the override_route_host branch 3 times, most recently from a89f867 to f2e1f69 Compare November 13, 2015 15:49
@smarterclayton
Copy link
Contributor Author

@ramr / @pravisankar can one of you look through this? Still need to add the integration test, but is functional.

@ramr
Copy link
Contributor

ramr commented Nov 19, 2015

Yeah, some tests would be good - the changes look good.

@smarterclayton
Copy link
Contributor Author

[test]

@smarterclayton
Copy link
Contributor Author

[test][extended:core]

@smarterclayton
Copy link
Contributor Author

Ram, can you help me debug the extended failure? Getting pulled into something else today - would like to close this out.

@ramr
Copy link
Contributor

ramr commented Dec 11, 2015

@smarterclayton sure - will take a look at it this eve/over the weekend.

@ramr
Copy link
Contributor

ramr commented Dec 15, 2015

@smarterclayton took a while - this commit ramr@9787405 fixes the test errors but it also needs a rebase from master as there was another fix that went in last week to properly report 503 pages (status headers).

smarterclayton and others added 3 commits December 15, 2015 13:52
Add --hostname-template which takes a format like
'${name}-${namespace}.cluster.local' for defaulting and add
--override-hostname to allow forcing of the route.
@smarterclayton
Copy link
Contributor Author

Thanks, much appreciated

On Tue, Dec 15, 2015 at 3:44 AM, Ram Ranganathan notifications@github.com
wrote:

@smarterclayton https://github.com/smarterclayton took a while - this
commit ramr/origin@9787405
ramr@9787405
fixes the test errors but it also needs a rebase from master as there was
another fix that went in last week to properly report 503 pages (status
headers).


Reply to this email directly or view it on GitHub
#5725 (comment).

@ramr
Copy link
Contributor

ramr commented Dec 15, 2015

@smarterclayton if you are swamped, did you want me to create a new PR from my branch with your code as the base and rebased from master + the above commit (ramr@9787405) added in? Let me know. Thx

@ramr
Copy link
Contributor

ramr commented Dec 15, 2015

nm - should have reloaded the page before I commented!! :^( ... think me needs that coffee now!!

@smarterclayton
Copy link
Contributor Author

[test]

1 similar comment
@smarterclayton
Copy link
Contributor Author

smarterclayton commented Dec 15, 2015 via email

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 35c68f4

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/7856/) (Extended Tests: core)

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Dec 16, 2015 via email

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4358/) (Image: devenv-rhel7_2965)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 35c68f4

openshift-bot pushed a commit that referenced this pull request Dec 16, 2015
@openshift-bot openshift-bot merged commit 0d4de0b into openshift:master Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants