You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Config sub-key has always just been a dump of an internal structure, so it hasn't been stable. We need to look internally and externally (hashicorp/nomad#3324) on places that depend on fields here and make a small, stable set of fields under Config that we document:
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
* config: provide stable config for /v1/agent/self (#3530)
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
* config: fix tests
* doc: update api documentation for /v1/agent/self
The
Config
sub-key has always just been a dump of an internal structure, so it hasn't been stable. We need to look internally and externally (hashicorp/nomad#3324) on places that depend on fields here and make a small, stable set of fields underConfig
that we document:NodeName string
Datacenter string
Revision string
Server bool
Version string
These are sourced from:
This test will be broken and needs an update - https://github.com/hashicorp/consul/blob/master/api/agent_test.go#L640-L647.
We should move the existing
Config
contents toDebugConfig
and document that this is for debugging use only and is subject to change.Once this is complete, we need to open a PR against https://github.com/terraform-providers/terraform-provider-consul/blob/master/consul/data_source_consul_agent_self.go that removes unsupported fields and notes that this data source will be deprecated in a future release of the provider.
The text was updated successfully, but these errors were encountered: