<p>I have a <code>values.yaml</code> file in which I have given <code>spring_datasource_hikari_maximum_pool_size: &quot;10&quot;</code></p>
<p>In <code>deployment yaml</code> I have used this value as</p>
<pre><code> - name: SPRING_DATASOURCE_HIKARI_MAXIMUM-POOL-SIZE
    value: {{ .Values.spring_datasource_hikari_maximum_pool_size }}
</code></pre>
<p>However, when used inside the <code>deployment.yaml </code>file it fails with the below error.</p>
<pre><code>
Deploy failed: The request is invalid: patch: Invalid value: &quot;map[metadata:map[annotations:map[kubectl.kubernetes.io/last-applied-configuration:{&quot;apiVersion&quot;:&quot;apps/v1&quot;,&quot;kind&quot;:&quot;Deployment&quot;,&quot;metadata&quot;:{&quot;annotations&quot;:
{
(helm values etc)
`{&quot;name&quot;:&quot;SPRING_DATASOURCE_HIKARI_MAXIMUM-POOL-SIZE&quot;,&quot;value&quot;:10}]` **(this is the incorrect value)** 
}
cannot convert int64 to string

</code></pre>
<p>What is the correct format of using an integer value from <code>values.yaml </code>file in a <code>deployment.yaml </code>file?</p>
<p>I have also tried multiple combinations with quotes &quot;&quot; but nothing seems to be working.</p>
<p>Any help is appreciated, Thanks in advance.</p>

Mohammed Idris
<p>I was able to resolve this by using <strong>double quotes</strong> on the <code>value</code> itself in <code>deployment.yaml</code> file</p>
<pre><code>- name: SPRING_DATASOURCE_HIKARI_MAXIMUM-POOL-SIZE
  value: &quot;{{ .Values.spring_datasource_hikari_maximum_pool_size }}&quot;
</code></pre>
<p>Since this was a <strong>production instance</strong> I could not check with @David Maze and Vit's solution.</p>
<p><strong>Edit:</strong></p>
<p>Tried with <code>quote</code> option and it worked too.</p>
<pre><code> - name: SPRING_DATASOURCE_HIKARI_MAXIMUMPOOLSIZE 
   value: {{ quote .Values.spring_datasource_hikari_maximum_pool_size }}
</code></pre>
