<p>I want to edit the configmap and replace the values. But it should be done using a different YAML in I ll specify overriding values as part of that file.</p>

<p>I was trying using <code>kubectl edit cm -f replace.yaml</code> but this didn't work so i want to know the structure in which the new file should be.</p>

<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: int-change-change-management-service-configurations
data:
  should_retain_native_dn: "False"
  NADC_IP: "10.11.12.13"
  NADC_USER: "omc"
  NADC_PASSWORD: "hello"
  NADC_PORT: "991"
  plan_compare_wait_time: "1"
  plan_prefix: ""
  ingress_ip: "http://10.12.13.14"
</code></pre>

<p>Now lets us assume NADC_IP should be changed and So I would like to know how should be structure of the YAML file and using which command it can be served?</p>

<p>The override taking place should only be during helm test for example when i run 
<code>helm test &lt;release-name&gt;</code>?</p>

Gokul Manoj Dhoot
<p><code>kubectl replace -f replace.yaml</code></p>

<p>If you have a configmap in place like this: </p>

<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: my-configmap
data:
  should_retain_native_dn: "False"
  NADC_IP: "10.11.12.13"
</code></pre>

<p>and you want to change the value of <code>NADC_IP</code> create a manifest file like this:</p>

<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: my-configmap
data:
  should_retain_native_dn: "False"
  NADC_IP: "12.34.56.78" # the new IP
</code></pre>

<p>and run <code>kubectl replace -f replace.yaml</code></p>
