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 17:34:11 UTC

[jira] [Created] (KARAF-4177) Kubernetes managed service doesn't update the correct properties set

Jean-Baptiste Onofré created KARAF-4177:
-------------------------------------------

             Summary: 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-2.3.6, cellar-3.0.3, cellar-4.0.0
            Reporter: Jean-Baptiste Onofré
            Assignee: Jean-Baptiste Onofré
             Fix For: cellar-3.0.4, cellar-2.3.7, 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)