diff --git a/packages/config/config.etcd.ts b/packages/config/config.etcd.ts index d2d682c..1b32c1e 100644 --- a/packages/config/config.etcd.ts +++ b/packages/config/config.etcd.ts @@ -10,12 +10,12 @@ import { NO_NAME_PROVIDE } from './config.messages'; export class EtcdConfig implements IConfig, OnModuleInit { private readonly retryInterval = 5000; private readonly logger = new Logger('ConfigModule'); - private readonly namespace = 'nestcloud-config/'; constructor( private readonly store: ConfigStore, private readonly client: IEtcd, private readonly name: string, + private readonly namespace: string = '', ) { } diff --git a/packages/config/config.factory.ts b/packages/config/config.factory.ts index 7d69ce0..3fbb1e5 100644 --- a/packages/config/config.factory.ts +++ b/packages/config/config.factory.ts @@ -20,7 +20,12 @@ export class ConfigFactory { client = new ConsulConfig(this.store, ref, this.options.name); break; case ETCD: - client = new EtcdConfig(this.store, ref, this.options.name); + client = new EtcdConfig( + this.store, + ref, + this.options.name, + this.options.namespace, + ); break; case KUBERNETES: client = new KubernetesConfig(