diff --git a/pkg/provider/consulcatalog/consul_catalog.go b/pkg/provider/consulcatalog/consul_catalog.go index 1bd0dab76..f1f09f7ff 100644 --- a/pkg/provider/consulcatalog/consul_catalog.go +++ b/pkg/provider/consulcatalog/consul_catalog.go @@ -46,7 +46,7 @@ type itemData struct { // ProviderBuilder is responsible for constructing namespaced instances of the Consul Catalog provider. type ProviderBuilder struct { - Configuration `export:"true"` + Configuration `yaml:",inline" export:"true"` // Deprecated: use Namespaces option instead. Namespace string `description:"Sets the namespace used to discover services (Consul Enterprise only)." json:"namespace,omitempty" toml:"namespace,omitempty" yaml:"namespace,omitempty"` diff --git a/pkg/provider/kv/consul/consul.go b/pkg/provider/kv/consul/consul.go index 492652c36..53f49a2c1 100644 --- a/pkg/provider/kv/consul/consul.go +++ b/pkg/provider/kv/consul/consul.go @@ -16,7 +16,7 @@ var _ provider.Provider = (*Provider)(nil) // ProviderBuilder is responsible for constructing namespaced instances of the Consul provider. type ProviderBuilder struct { - kv.Provider `export:"true"` + kv.Provider `yaml:",inline" export:"true"` // Deprecated: use Namespaces instead. Namespace string `description:"Sets the namespace used to discover the configuration (Consul Enterprise only)." json:"namespace,omitempty" toml:"namespace,omitempty" yaml:"namespace,omitempty"`