diff --git a/source/store.go b/source/store.go index b1d7eff673..90068d6418 100644 --- a/source/store.go +++ b/source/store.go @@ -85,13 +85,13 @@ func BuildWithConfig(source string, p ClientGenerator, cfg *Config) (Source, err if err != nil { return nil, err } - return NewServiceSource(client, cfg.FQDNTemplate, cfg.Namespace, cfg.Compatibility) + return NewServiceSource(client, cfg.Namespace, cfg.FQDNTemplate, cfg.Compatibility) case "ingress": client, err := p.KubeClient() if err != nil { return nil, err } - return NewIngressSource(client, cfg.FQDNTemplate, cfg.Namespace) + return NewIngressSource(client, cfg.Namespace, cfg.FQDNTemplate) case "fake": return NewFakeSource(cfg.FQDNTemplate) }