From f07fcd3d54f43280e0d6677b9854616bbc29c6d1 Mon Sep 17 00:00:00 2001 From: Kevin Pollet Date: Tue, 12 Jul 2022 12:12:08 +0200 Subject: [PATCH] Add missing inline tag for YAML serialization --- pkg/provider/consulcatalog/consul_catalog.go | 2 +- pkg/provider/kv/consul/consul.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"`