title: Openshift: Configmap not picked up by the application
body: <p>I have a springboot application deployed in openshift with application.properties having </p>
  
  <pre><code>greeting.constant = HelloWorld.SpringProp
  </code></pre>
  
  <p>I have also defined the fabric8/configmap.yml</p>
  
  <pre><code>apiVersion: v1
  kind: ConfigMap
  metadata:
    name: sampleappconfig
  data:  
    greeting.constant: Hellowrold.Poc.ConfigMap.Test
  </code></pre>
  
  <p>and fabric8/deployment.yml</p>
  
  <pre><code>spec:
    template:
      spec:
        containers:
        - name: sampleappcontainer
          env:
          - name: greeting.constant
            valueFrom:
              configMapKeyRef:
                name: sampleappconfig
                key: greeting.constant
          envFrom:
          - configMapRef:
              name: sampleappconfig
          resources:
            requests:
              cpu: "0.2"
  #           memory: 256Mi
            limits:
              cpu: "1.0"
  #           memory: 256Mi
  </code></pre>
  
  <p>On deploying the application using fabric8, it creates the Configmap in the Openshift and I also see "greeting.constant" in the "Environment" tab of the Application in openshift webconsole.</p>
  
  <p>The issue is I would expect the application to pick up the values given in the Configmap instead of Spring application.properties as Env variables takes precendence. But, running the application logs "HelloWorld.SpringProp" instead of "Hellowrold.Poc.ConfigMap.Test".</p>
  
  <p>How do I make my application to refer the properties from Configmap?</p>