Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/config/config.etcd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '',
) {
}

Expand Down
7 changes: 6 additions & 1 deletion packages/config/config.factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down