(refactor) Move all k8s config under kubernetes field | Adarsh

This commit is contained in:
Adarsh K Kumar committed 2020-11-11 23:36:12 +05:30
1 parent 81e6e0b188
commit 559d286121
6 files changed
+95 -33

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ var (
func main() {
cfg := loadConfiguration()
if cfg.AutoDiscoverK8SServices {
if cfg.Kubernetes.AutoDiscover {
discoveredServices := discovery.GetServices(cfg)
cfg.Services = append(cfg.Services, discoveredServices...)
}