Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Expose haproxy-sni-proxy mapped ports as environmental variables #5827

Merged
merged 1 commit into from
Sep 22, 2014

Conversation

bparees
Copy link
Contributor

@bparees bparees commented Sep 19, 2014

@bparees
Copy link
Contributor Author

bparees commented Sep 19, 2014

[test][extended:cartridge,gear]

@openshift-bot
Copy link

Origin Test Results: FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests/2946/)

@openshift-bot
Copy link

@bparees
Copy link
Contributor Author

bparees commented Sep 20, 2014

[test]

@bparees
Copy link
Contributor Author

bparees commented Sep 20, 2014

@mfojtik review please?


# Add env variable for the public port mapping.
port=url.gsub(/.*?(\d+)$/,'\1')
@container.add_env_var(endpoint.public_port_name,port)
Copy link
Contributor

Choose a reason for hiding this comment

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

How about:

@container.add_env_var(endpoint.public_port_name, url[/(\d+)$/])

This will work if we are sure the ":port" part will always be there.

@openshift-bot
Copy link

Evaluated for origin up to d204bd7

@bparees
Copy link
Contributor Author

bparees commented Sep 22, 2014

@mfojtik fixed the substitution, anything else?

@mfojtik
Copy link
Contributor

mfojtik commented Sep 22, 2014

@bparees LGTM, you want me to merge this or wait for tests to finish?

@bparees
Copy link
Contributor Author

bparees commented Sep 22, 2014

@mfojtik was waiting for the tests. [merge]

@openshift-bot
Copy link

Online Merge Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/merge_pull_requests/6021/) (Image: devenv_5181)

@openshift-bot
Copy link

Evaluated for online up to d204bd7

openshift-bot pushed a commit that referenced this pull request Sep 22, 2014
@openshift-bot openshift-bot merged commit 441dd1f into openshift:master Sep 22, 2014
@bparees bparees deleted the sni_port_env branch September 25, 2014 13:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants