Use configmap name when configuring an archaius watcher
This commit is contained in:
committed by
Ioannis Canellos
parent
9372706994
commit
8b87c908df
@@ -82,7 +82,7 @@ public class ArchaiusConfigMapSourceConfiguration implements InitializingBean, D
|
||||
}
|
||||
watch = StringUtils.isEmpty(namespace)
|
||||
? client.configMaps().withName(name).watch(watcher)
|
||||
: client.configMaps().inNamespace(namespace).withName(namespace).watch(watcher);
|
||||
: client.configMaps().inNamespace(namespace).withName(name).watch(watcher);
|
||||
started.set(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user