You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/12/07 18:58:10 UTC
[jira] [Resolved] (KARAF-4177) Kubernetes managed service doesn't
update the correct properties set
[ https://issues.apache.org/jira/browse/KARAF-4177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré resolved KARAF-4177.
-----------------------------------------
Resolution: Fixed
> Kubernetes managed service doesn't update the correct properties set
> --------------------------------------------------------------------
>
> Key: KARAF-4177
> URL: https://issues.apache.org/jira/browse/KARAF-4177
> Project: Karaf
> Issue Type: Bug
> Components: cellar-cloud
> Affects Versions: cellar-4.0.0, cellar-3.0.3
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Fix For: cellar-3.0.4, cellar-4.0.1
>
>
> In the KubernetesDiscoveryServiceFactory (https://github.com/apache/karaf-cellar/blob/master/kubernetes/src/main/java/org/apache/karaf/cellar/kubernetes/KubernetesDiscoveryServiceFactory.java#L69), the update() method updated its own properties:
> {code}
> Properties serviceProperties = new Properties();
> for (Map.Entry entry : serviceProperties.entrySet()) {
> Object key = entry.getKey();
> Object value = entry.getValue();
> serviceProperties.put(key, value);
> }
> {code}
> instead of the iterating on serviceProperties, we have to iterate on properties directly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)