Skip to content

Indentation issue in dekaf deployment helm template #651

@jiahaojz-onum

Description

@jiahaojz-onum

Describe the bug
While trying to mount a volumen in the dekaf deployment there is an indentation issue in the template causing a log like the following:

Error: YAML parse error on pulsar/templates/dekaf-deployment.yaml: error converting YAML to JSON: yaml: line 98: did not find expected key

To Reproduce
In the charts folder (pulsar-helm-chart/charts/pulsar)

  • Create a file called test-values.yaml for example with the following content:
components:
  dekaf: true

dekaf:
  persistence:
    storageClass: "gp3"
  deployment:
    extraEnv:
    - name: DEKAF_PUBLIC_BASE_URL
      value: "http://dekaf-int-dev.test.com
    extraVolumeMounts:
      - name: admin-token
        mountPath: /pulsar/tokens/admin
        readOnly: true
    extraVolumes:
      - name: admin-token
        secret:
          secretName: pulsar-token-admin

Then run helm template pulsar . -f test-values.yaml --show-only templates/dekaf-deployment.yaml

Expected behavior
A template renders correctly

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]

Additional context
It can be fixed by correcting the indentation in pulsar-helm-chart/charts/pulsar/templates/dekaf-deployment.yaml by setting nindent 6 in the following lane {{- toYaml .Values.dekaf.deployment.extraVolumes | default list | nindent 8 }}

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