title: Openshift Configmap : create and update command
body: <p>I am writing sample program to deploy into Openshift with configmap. I have the following configmap yaml in the source code folder  so when devops is setup, Jenkins should pick up this yaml and create/update the configs.</p>
  
  <pre><code> apiVersion: v1
   kind: ConfigMap
   metadata:
    name: sampleapp
   data:  
    username: usernameTest
    password: passwordTest
  </code></pre>
  
  <p>However, I could not find the command that would create/update if the config already exist (similar to kubectl apply command). Can you help with the correct command which would create the Resource if the job is run for the first time and update if otherwise.</p>
  
  <p>I also want to create/update the Services,Routes from the yaml files in the src repository.</p>
  
  <p>Thanks.</p>