From ea6c788fa02e9d165d765fad12907f7665a98230 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Wed, 11 Nov 2020 14:52:53 -0500 Subject: [PATCH] Use pointers instead of empty struct in k8s.Config --- k8s/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/config.go b/k8s/config.go index e0e2589c..aa7abd54 100644 --- a/k8s/config.go +++ b/k8s/config.go @@ -8,7 +8,7 @@ type Config struct { AutoDiscover bool `yaml:"auto-discover"` // ServiceTemplate Template for auto discovered services - ServiceTemplate core.Service `yaml:"service-template"` + ServiceTemplate *core.Service `yaml:"service-template"` // ExcludeSuffix Ignore services with this suffix ExcludeSuffix []string `yaml:"exclude-suffix"` @@ -17,7 +17,7 @@ type Config struct { ClusterMode string `yaml:"cluster-mode"` // Namespaces from which to discover services - Namespaces []NamespaceConfig `yaml:"namespaces"` + Namespaces []*NamespaceConfig `yaml:"namespaces"` } // NamespaceConfig level config