Use pointers instead of empty struct in k8s.Config
This commit is contained in:
parent
5df5e6755e
commit
ea6c788fa0
@ -8,7 +8,7 @@ type Config struct {
|
|||||||
AutoDiscover bool `yaml:"auto-discover"`
|
AutoDiscover bool `yaml:"auto-discover"`
|
||||||
|
|
||||||
// ServiceTemplate Template for auto discovered services
|
// 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 Ignore services with this suffix
|
||||||
ExcludeSuffix []string `yaml:"exclude-suffix"`
|
ExcludeSuffix []string `yaml:"exclude-suffix"`
|
||||||
@ -17,7 +17,7 @@ type Config struct {
|
|||||||
ClusterMode string `yaml:"cluster-mode"`
|
ClusterMode string `yaml:"cluster-mode"`
|
||||||
|
|
||||||
// Namespaces from which to discover services
|
// Namespaces from which to discover services
|
||||||
Namespaces []NamespaceConfig `yaml:"namespaces"`
|
Namespaces []*NamespaceConfig `yaml:"namespaces"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NamespaceConfig level config
|
// NamespaceConfig level config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user