-
-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pants-plugins/uses_services: prepare to allow alternative st2cluster …
…hosts/ports In the uses_services plugin, I am now adding env var support (in several PRs), but so far I've avoiding parsing conf files. Plus, allowing reconfiguration of the st2cluster hosts/ports would require the st2client and st2 dev cluster config to align. Today, the st2cluster integration tests hardcode st2client's base_url to `http://127.0.0.1`. Technically someone could override the endpoint URLs with ST2_{AUTH,API,STREAM}_URL env vars, but they would also need to make sure whatever cluster they use has the examples pack and other things handled by `launchdev.sh`. Today, the other alternative for using a different cluster would be to forward the service ports to the localhost at the standard ports. For now, just use a separate host for each endpoint so it is easier to support overriding via env vars and/or conf files at some point in the future--if someone needs that. Until then, we'll go with the minimal implementation that assumes the default hosts and ports.
- Loading branch information
1 parent
50c91cc
commit 491a4a2
Showing
2 changed files
with
39 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters