-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Use empty strings as defaults for some empty values #2176
Conversation
PR Description updated to latest commit (a98e39c)
|
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
May I know the Helm version that you could reproduce this issue? |
Sure, it's |
Yes, it is the same version that is used in CI tests. There is a template test rely on |
Thank you, @maxmanuylov! |
User description
Description
Use empty strings as default values for object fields that templates iterate over.
Motivation and Context
Maybe it's a Helm bug, but the following code produces different results depending on the values of the ".nodeConfigMap.extraScripts" fields:
nil
: correct output""
: correct outputnil
: the block above produces empty output, looks like it performs no iterations""
: correct outputTypes of changes
Checklist
Type
bug_fix
Description
nil
, by setting their default values to empty strings.nodeConfigMap.extraScripts
,recorderConfigMap.extraScripts
, anduploaderConfigMap.extraScripts
in thevalues.yaml
file of the selenium-grid chart to have empty string defaults for scripts likenodePreStop.sh
,nodeProbe.sh
,video.sh
,video_graphQLQuery.sh
, andupload.sh
.nil
or empty strings.Changes walkthrough
values.yaml
Set Default Empty String Values for ConfigMap Scripts
charts/selenium-grid/values.yaml
nodeConfigMap.extraScripts
,recorderConfigMap.extraScripts
, anduploaderConfigMap.extraScripts
toempty strings.
nodePreStop.sh
,nodeProbe.sh
,video.sh
,video_graphQLQuery.sh
, andupload.sh
have empty string defaults toavoid iteration issues in Helm templates.