Skip to content

Specifying custom volume mounts generates malformed yaml #561

@anandb

Description

@anandb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions