<p>can someone help?
I am trying to inject a helm value on a config map, but it breaks the format. If I use the value directly instead of .Values, it works fine.</p>
<p>What I have:</p>
<pre><code>data:
  application.instanceLabelKey: argocd.argoproj.io/instance
  oidc.config: |
    name: Okta
    issuer: https://mycompany.okta.com
    clientID: {{ .Values.okta.clientID }}
    clientSecret: {{ .Values.okta.clientSecret }}
    requestedScopes: [&quot;openid&quot;, &quot;profile&quot;, &quot;email&quot;, &quot;groups&quot;]
    requestedIDTokenClaims: {&quot;groups&quot;: {&quot;essential&quot;: true}}
</code></pre>
<p>The result</p>
<pre><code>data:
  application.instanceLabelKey: argocd.argoproj.io/instance
  oidc.config: &quot;name: Okta\nissuer: https://mycompany.okta.com\nclientID: myClientId \nclientSecret:
    mySecret\nrequestedScopes: [\&quot;openid\&quot;, \&quot;profile\&quot;,
    \&quot;email\&quot;, \&quot;groups\&quot;]\nrequestedIDTokenClaims: {\&quot;groups\&quot;: {\&quot;essential\&quot;: true}}\n&quot;
</code></pre>

Stargazer
<p>it should be with the values.yaml . it worked for me in both ways :</p>
<ol>
<li>using the values in values.yaml</li>
</ol>
<hr />
<p>Values.yaml:</p>
<pre><code>okta:
  clientSecret: test1233
  clientID: testnew
</code></pre>
<p>configmap</p>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
  name: test-config
  namespace: default
  labels:
    app: test
data:
  application.instanceLabelKey: argocd.argoproj.io/instance
  oidc.config: |
    name: Okta
    issuer: https://mycompany.okta.com
    clientID: {{ .Values.okta.clientID }}
    clientSecret: {{ .Values.okta.clientSecret }}
    requestedScopes: [&quot;openid&quot;, &quot;profile&quot;, &quot;email&quot;, &quot;groups&quot;]
    requestedIDTokenClaims: {&quot;groups&quot;: {&quot;essential&quot;: true}}
</code></pre>
<hr />
<p>command used :</p>
<pre><code> helm install testchart .\mycharttest --dry-run
</code></pre>
<p>-----Output-------------------</p>
<pre><code># Source: mycharttest/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: test-config
  namespace: default
  labels:
    app: test
    product: test
    db: test
data:
  application.instanceLabelKey: argocd.argoproj.io/instance
  oidc.config: |
    name: Okta
    issuer: https://mycompany.okta.com
    clientID: testnew
    clientSecret: test1233
    requestedScopes: [&quot;openid&quot;, &quot;profile&quot;, &quot;email&quot;, &quot;groups&quot;]
    requestedIDTokenClaims: {&quot;groups&quot;: {&quot;essential&quot;: true}}
</code></pre>
<ol start="2">
<li>using the values in runtime</li>
</ol>
<hr />
<p>---Command --</p>
<pre><code> helm install test .\mycharttest --dry-run --set okta.clientID=newclientid --set okta.clientSecret=newsecret
</code></pre>
<p>----Output ---</p>
<pre><code># Source: mycharttest/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: test-config
  namespace: default
  labels:
    app: test
    product: test
    db: test
data:
  application.instanceLabelKey: argocd.argoproj.io/instance
  oidc.config: |
    name: Okta
    issuer: https://mycompany.okta.com
    clientID: newclientid
    clientSecret: newsecret
    requestedScopes: [&quot;openid&quot;, &quot;profile&quot;, &quot;email&quot;, &quot;groups&quot;]
    requestedIDTokenClaims: {&quot;groups&quot;: {&quot;essential&quot;: true}
</code></pre>
<p>kubernetes version : 1.22
Helm version :
version.BuildInfo{Version:&quot;v3.7.1&quot;, GitCommit:&quot;1d11fcb5d3f3bf00dbe6fe31b8412839a96b3dc4&quot;, GitTreeState:&quot;clean&quot;, GoVersion:&quot;go1.16.9&quot;}</p>
