<p>I need to install a helm with a dynamic &quot;project_id&quot; flag on deploy time inside the <code>rawConfig</code> multi-line string</p>
<p>Example <code>values.yaml</code></p>
<pre><code>sinks:
  console:
    type: &quot;console&quot;
    inputs: [&quot;kafka&quot;]
    rawConfig: |
      target = &quot;stdout&quot;

      encoding.codec = &quot;json&quot;

  stackdriver:
    type: &quot;gcp_stackdriver_logs&quot;
    inputs: [&quot;kafka&quot;]
    rawConfig: |
      healthcheck = true
      log_id = &quot;mirth-channels-log&quot;
      project_id = &quot;my_project&quot;
      resource.type = &quot;k8s_cluster&quot;
</code></pre>
<p>How do I override this value of <code>project_id</code> in rawConfig? I'm trying to do this:</p>
<pre><code> helm install vector helm/vector --values helm/vector-agent/values.yaml -n my-namespace --set sinks.stackdriver.rawConfig='\nlog_id\ =\ &quot;mirth-channels-log&quot;\nproject_id\ =\ &quot;my_project_test&quot;\nresource.type\ =\ &quot;k8s_cluster&quot;\n'
</code></pre>
<p>But it does not work</p>

Igor Corradi
<p>Maybe not the best way, but you can use a separate multiline variable for that:</p>
<pre class="lang-sh prettyprint-override"><code>export MULTILINE_VALUE=$(cat &lt;&lt;EOF                     
healthcheck = true 
log_id = &quot;mirth-channels-log&quot; 
project_id = &quot;my_project_test&quot;
resource.type = &quot;k8s_cluster&quot; 
EOF
)

helm install vector helm/vector --values helm/vector-agent/values.yaml -n my-namespace \
--set sinks.stackdriver.rawConfig=$MULTILINE_VALUE

</code></pre>
