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

Provide stable config for agent/self #3532

Merged
merged 3 commits into from
Oct 4, 2017
Merged

Conversation

magiconair
Copy link
Contributor

@magiconair magiconair commented Oct 4, 2017

/v1/agent/self was exposing the previous internal config structure and some external services like Nomad and Consul itself relied on its format although it was never documented. Since we have refactored the runtime configuration to be independent from the config file configuration this change broke Nomad and others and we introduce a stable, documented Config response to the agent/self response.

Fixes #3530
Fixes hashicorp/nomad#3324

@magiconair magiconair added this to the 1.0 milestone Oct 4, 2017
@magiconair magiconair self-assigned this Oct 4, 2017
@slackpad
Copy link
Contributor

slackpad commented Oct 4, 2017

This looks good - just need to update https://www.consul.io/api/agent.html#read-configuration to match, and make a note about DebugConfig on there (we can redact its contents from the example shown in the docs).

@dadgar
Copy link
Contributor

dadgar commented Oct 4, 2017

This is great. Thanks for the quick fix

This patch adds a stable subset of the previous Config struct to the
agent/self response. The actual runtime configuration is moved into
DebugConfig and will be documented to change.

Fixes #3530
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants