-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rebase consul template and make Nomad environment variables available #2209
Conversation
Wait: &watch.Wait{}, | ||
} | ||
ct := ctconf.DefaultTemplateConfig() | ||
ct.Source = &src |
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.
There are config
helpers that assist in taking the address of things:
config.String("foo")
but this works too
@@ -401,34 +400,29 @@ func parseTemplateConfigs(tmpls []*structs.Template, taskDir string, | |||
// runnerConfig returns a consul-template runner configuration, setting the | |||
// Vault and Consul configurations based on the clients configs. | |||
func runnerConfig(config *config.Config, vaultToken string) (*ctconf.Config, error) { | |||
conf := &ctconf.Config{} | |||
conf := ctconf.DefaultConfig() |
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.
I'm not seeing a place where you finalize this config.
Will the updates consul-template still support the deprecated |
Consul Template supports |
f6c5bdd
to
fbdb322
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR:
Fixes #2066
Fixes #1979