title: Merge two Value files in helm
body: <p>I'm looking to merge two values files in helm. </p>
  
  <p>secrets.yaml:</p>
  
  <pre><code>    serviceMonitor:
         endpoints:
           - module: oracledb
             port: http
             scheme: http
             url: "http://user:password@ip:port/xxx" 
  </code></pre>
  
  <p>I have another values.yaml file which has multiple endpoints. I want to merge both the values files. I'm tried using append function to do that: <code>{{$endpoints := (append .Values.serviceMonitor.endpoints .Values.oracle_db.serviceMonitor.endpoints) }}</code> When I do a dry-run, I see its picking up both the values but won't merge. Any one come across this? </p>