-
Notifications
You must be signed in to change notification settings - Fork 783
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
[bug] consul-template does not fail on missing key despite configuration #1844
Comments
For this request, would it be possible for 2 enhancements:
@akamensky : the failed key behaviour definitely works in version 0.30 or later. Set up a config file - in the file below, i allow it to wait for 2 seconds to try resolve the key - the first 2 options are needed for the behaviour to work:
Run
2s delay with exit failure can be seen. |
@brettcave the config option didn't work for me using the version provided in top post. OTOH without CLI option and needing to always provide location of configuration every time makes it very hard to use configuration file in environments that are managed programmatically. |
@akamensky - yep - i think a CLI option + ability to control "must have key" vs "wait and poll" or "fall back to default" gives a lot more flexibility for this |
Version
Steps to reproduce
-once
and-template-error-fatal=<bool>
Expected outcome
consul-template fails to process template on a key lookup
Actual outcome
consul-template waits indefinitely for key to appear in KV
Screenshot
References
Are there any other GitHub issues (open or closed) that should
be linked here? For example:
Suggested solutions (not exclusive)
err_on_failed_lookup = true
actually work as advertised/etc/consul-template.[hcl|json]
The text was updated successfully, but these errors were encountered: