-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Atlantis should log a warning if custom gitlab or github hostname isn't resolvable by DNS. #128
Comments
On the flip side if you are spinning up a gitlab which is I believe often packaged as a container now it may not be immediately resolvable if your containers launch too close to each other depending on your setup, I'd suggest better logging and an option to bail on failure to connect (or an option to keep running whichever makes more sense) also keep in mind that if you are using a process supervisor such as |
I think you should still be able to resolve the DNS though? If you're using something like Docker Compose I think that the DNS is set even if the container isn't booting yet. |
There is a very long thread on this as it related to elasticsearch: elastic/elasticsearch#14441 feel free to read through all the reasons that people gave. It is a bit different in that it is ips vs names but I think the concept is the same. We could always eat our cake and eat it by using config/args to control this behavior. |
Okay I'll change this to logging a warning if it can't resolve it. |
I'd be ok with warning or error. Id personally steer towards errors. |
In GitHub this is not needed:
|
Don't quote -var
#122 took a while to debug because there wasn't a good error message. When Atlantis starts up, we should validate whether we can resolve any custom gitlab or github hostname and if not, log a warning.
The text was updated successfully, but these errors were encountered: