Skip to content

[tei] fix: correct extraEnv and volumeMounts rendering - #309

Open
driv wants to merge 1 commit into
zilliztech:masterfrom
driv:fix/tei-render-env-volumemounts
Open

driv wants to merge 1 commit into
zilliztech:masterfrom
driv:fix/tei-render-env-volumemounts

Conversation

@driv

@driv driv commented Jul 31, 2026

Copy link
Copy Markdown

What this PR does / why we need it:

Fixes #235. The extraEnv and volumeMounts blocks in the tei chart's StatefulSet template were rendered using a combination of literal template indentation and the indent filter, which produced invalid YAML whenever either value was configured (e.g. error converting YAML to JSON: yaml: line 51: did not find expected key).

This switches both blocks to toYaml | nindent, so list items align with the chart's existing block-sequence style (same indent as args/ports).

Example, before:

env:
          - name: FOO
          value: bar

After:

env:
- name: FOO
  value: bar

Checklist

  • Chart Version bumped
  • Variables are documented in the README.md
  • Title of the PR starts with chart name (e.g. [mychartname])
  • PR only contains changes for one chart

The extraEnv and volumeMounts blocks were rendered with a mix of
template indentation and the indent filter, producing invalid YAML
when either value is configured (e.g. "did not find expected key").
Switch to toYaml with nindent so list items align with the rest of the
chart's block sequence style.

Fixes zilliztech#235

Signed-off-by: Federico Nafria <federico.nafria@athoscommerce.com>
@sre-ci-robot
sre-ci-robot requested a review from haorenfsa July 31, 2026 09:10
@sre-ci-robot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: driv
To complete the pull request process, please assign yellow-shine after the PR has been reviewed.
You can assign the PR to them by writing /assign @yellow-shine in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot
sre-ci-robot requested a review from LoveEachDay July 31, 2026 09:10
@sre-ci-robot

Copy link
Copy Markdown
Collaborator

Welcome @driv! It looks like this is your first PR to zilliztech/milvus-helm 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] In the tei chart, the extraEnv and volumeMounts configuration items cannot be rendered correctly.

2 participants