Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforces string type #2959

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

scarolan
Copy link

When you pass --set "alloy.extraEnv[0].value=8443", Helm interprets 8443 as a number, which is incompatible with a template expecting a string.

PR Description

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

When you pass --set "alloy.extraEnv[0].value=8443", Helm interprets 8443 as a number, which is incompatible with a template expecting a string.
@scarolan scarolan requested a review from a team as a code owner March 11, 2025 16:52
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment on lines +35 to +37
{{- range $envValue := $values.extraEnv }}
- name: {{ $envValue.name | quote }}
value: {{ $envValue.value | quote }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work with other valid ways to specify extraEnv like

- name: ...
  valueFrom: ...

So we cannot 'fix' it this way. Instead please open an issue where you provide a bit more detail on the use case and the command that you execute that is not working for you, we may be able to help with finding a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants