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

Use the built-in OpenShift service environment variables #16001

Merged

Conversation

carbonin
Copy link
Member

Before this change we were providing the memcached and ansible service names as environment variables.

These names are DNS entries that resolve to the already present values in <SVCNAME>_SERVICE_HOST. If we just use those directly, we can eliminate some template overhead.

ref: https://docs.openshift.org/latest/dev_guide/environment_variables.html#automatically-added-environment-variables

Thanks @abellotti for showing me that we could make use of these.

Before this change we were providing the memcached and ansible
service names as environment variables.

These names are DNS entries that resolve to the already present
values in <SVCNAME>_SERVICE_HOST. If we just use those directly,
we can eliminate some template overhead.

ref: https://docs.openshift.org/latest/dev_guide/environment_variables.html#automatically-added-environment-variables
@carbonin carbonin force-pushed the use_openshift_built_in_service_variables branch from 33e1ddc to 4fe0ec4 Compare September 20, 2017 15:42
@miq-bot
Copy link
Member

miq-bot commented Sep 20, 2017

Checked commit carbonin@4fe0ec4 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
5 files checked, 0 offenses detected
Everything looks fine. 🏆

@Fryguy
Copy link
Member

Fryguy commented Sep 20, 2017

Cool... LGTM. @bdunne Can you take a look?

@bdunne bdunne merged commit e7fd9e4 into ManageIQ:master Sep 20, 2017
@bdunne bdunne added this to the Sprint 70 Ending Oct 2, 2017 milestone Sep 20, 2017
carbonin added a commit to carbonin/manageiq-pods that referenced this pull request Sep 20, 2017
Now that ManageIQ/manageiq#16001 is merged
we can remove the environment variables that were previously being
used in place of the *_SERVICE_HOST ones
@carbonin
Copy link
Member Author

Opened related PR in the pods repo ManageIQ/manageiq-pods#223

@carbonin carbonin deleted the use_openshift_built_in_service_variables branch September 20, 2017 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants