-
Notifications
You must be signed in to change notification settings - Fork 514
Expose haproxy-sni-proxy mapped ports as environmental variables #5827
Conversation
[test][extended:cartridge,gear] |
Origin Test Results: FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests/2946/) |
Online Test Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/test_pull_requests/8392/) |
[test] |
@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) |
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.
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.
0faeb42
to
d204bd7
Compare
Evaluated for origin up to d204bd7 |
@mfojtik fixed the substitution, anything else? |
@bparees LGTM, you want me to merge this or wait for tests to finish? |
@mfojtik was waiting for the tests. [merge] |
Online Merge Results: SUCCESS (https://ci.dev.openshift.redhat.com/jenkins/job/merge_pull_requests/6021/) (Image: devenv_5181) |
Evaluated for online up to d204bd7 |
Merged by openshift-bot
https://bugzilla.redhat.com/show_bug.cgi?id=1143991