[GH-ISSUE #561] Specifying custom volume mounts generates malformed yaml #23

Closed
opened 2026-02-16 01:16:41 -05:00 by yindo · 1 comment
Owner

Originally created by @anandb on GitHub (Jan 23, 2026).
Original GitHub issue: https://github.com/langchain-ai/helm/issues/561

Using the customVolumeMounts field in the values triggers incorrect yaml to be generated, the indentation specified in langgraph-dataplane/templates/operator/deployment.yaml should be 10 instead of 12.

Values:

commonVolumeMounts:
  - name: cacerts
    mountPath: /etc/ssl/certs/ca-bundle.crt
    subPath: ca-bundle.crt
    readOnly: true

commonVolumes:
  - name: cacerts
    secret:
      secretName: cacerts
      defaultMode: 420
❯ helm template langgraph-dataplane ./charts/langgraph-dataplane -f ../langgraph-dataplane-values.yaml
Error: YAML parse error on langgraph-dataplane/templates/operator/deployment.yaml: error converting YAML to JSON: yaml: line 86: did not find expected key

Git Diff

diff --git a/charts/langgraph-dataplane/templates/operator/deployment.yaml b/charts/langgraph-dataplane/templates/operator/deployment.yaml
index 85a44ca..32d77bf 100644
--- a/charts/langgraph-dataplane/templates/operator/deployment.yaml
+++ b/charts/langgraph-dataplane/templates/operator/deployment.yaml
@@ -100,7 +100,7 @@ spec:
             subPath: database-statefulset.yaml.tmpl
             readOnly: true
         {{- with $volumeMounts }}
-          {{- toYaml . | nindent 12 }}
+          {{- toYaml . | nindent 10 }}
         {{- end }}
         env:
           - name: WATCH_NAMESPACE
Originally created by @anandb on GitHub (Jan 23, 2026). Original GitHub issue: https://github.com/langchain-ai/helm/issues/561 Using the `customVolumeMounts` field in the values triggers incorrect yaml to be generated, the indentation specified in `langgraph-dataplane/templates/operator/deployment.yaml` should be 10 instead of 12. Values: ```yaml commonVolumeMounts: - name: cacerts mountPath: /etc/ssl/certs/ca-bundle.crt subPath: ca-bundle.crt readOnly: true commonVolumes: - name: cacerts secret: secretName: cacerts defaultMode: 420 ``` ``` ❯ helm template langgraph-dataplane ./charts/langgraph-dataplane -f ../langgraph-dataplane-values.yaml Error: YAML parse error on langgraph-dataplane/templates/operator/deployment.yaml: error converting YAML to JSON: yaml: line 86: did not find expected key ``` Git Diff ```diff diff --git a/charts/langgraph-dataplane/templates/operator/deployment.yaml b/charts/langgraph-dataplane/templates/operator/deployment.yaml index 85a44ca..32d77bf 100644 --- a/charts/langgraph-dataplane/templates/operator/deployment.yaml +++ b/charts/langgraph-dataplane/templates/operator/deployment.yaml @@ -100,7 +100,7 @@ spec: subPath: database-statefulset.yaml.tmpl readOnly: true {{- with $volumeMounts }} - {{- toYaml . | nindent 12 }} + {{- toYaml . | nindent 10 }} {{- end }} env: - name: WATCH_NAMESPACE ```
yindo changed title from Specifying custom volume mounts generates malformed yaml to [GH-ISSUE #561] Specifying custom volume mounts generates malformed yaml 2026-06-05 19:14:52 -04:00
yindo closed this issue 2026-06-05 19:14:53 -04:00
Author
Owner

@langchain-infra commented on GitHub (Feb 26, 2026):

This has been fixed

<!-- gh-comment-id:3967461806 --> @langchain-infra commented on GitHub (Feb 26, 2026): This has been fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/helm#23