You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not delete default keys from subcharts if subchart is defined in dependencies #9027
The merge of values is still working while removing key isn't working.
This bug exists on helm2 w/ requirements.yaml, too. Just for notice.
Output of helm version:
jkr@joe-nb demo % helm version
version.BuildInfo{Version:"v3.4.0", GitCommit:"7090a89efc8a18f3d8178bf47d2462450349a004", GitTreeState:"dirty", GoVersion:"go1.15.3"}
Demo: chart.tar.gz (wrong file extension, its an uncompressed tar)
Reacted by Diego Rodriguez, Simon Baier, Arcadie Condrat, R-omk, Hugo Hars, Didrik Finnøy, vlad-ogol, Chris Girard, Kyle Gottfried, Robin Hermann and 32 more
This to me seems like something to do with the YAML parser where a null value is not received or parsed, whereas the --set parser can pick up these null values and propagate them down the tree as needed.
I am seeing a similar problem, except it's one layer deeper: I'm including loki-stack as a sub-chart, which then has the loki chart as a sub-chart.
I am trying to remove the resulting loki-stack.loki.config.storage_config.filesystem key, which i can only do using helm template --set loki-stack.loki.config.storage_config.filesystem=null (as you also observed).
The only practical workaround appears to be to extract the chart locally and remove the actual default value itself.
Basic reproducer (helm version i used: v3.4.1):
Chart.yaml with the loki-stack chart as dependency
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
Here is my summary of some tests I've made. Will these cases be treated differently when #11440 or #12162 is merged?
Tested with helm 3.11.3. global means the value is under the global i helm values.
The number in the key is how deep the key is nested: myKey1, myKey2 etc.
First is chart with library dep and explicit -f values.yaml
Second is chart with library dep and without explicit -f values.yaml
Third is chart without library dep and with explicit -f values.yaml
Fourth is chart without library dep and without explicit -f values.yaml
Removing keys in subcharts was supposed to be fixed by #12162 but the bug is still present in Helm 3.13.2 and 3.13.3: #12488
The fix only works if --values is not used, so the "workaround" is to write your configuration changes into the default values.yml file without specifying it with --values or -f.
I'm experiencing this issue or similar with a chart that has a dependency. Using helm v3.13.3, executing: helm template chart -f values1.yaml -f values2.yaml
values1.yaml contains some key and values2.yaml sets this key to null, but helm doesn't remove the key.
Ignore the below please, I found the solution to my issue.
I needed to set the cpu limits to null in my values.yaml file (specifically the file called 'values.yaml'). I was unable to override the default cpu limit values when using a file that I passed using '--values somefile.yaml', but was able to do it when I overwrote it in the main values.yaml
original post:
I'm also still seeing what seems to be the bug in v3.14.0
The following is defined in the values.yaml of a dependency sub-chart:
Activity
bacongobbler commentedon Nov 16, 2020
The attachment you provided is not a gzipped tarball, FYI. Just a tar file.
tar xf chart.tar.gzworks fine.I can reproduce this behaviour via the values file.
However, this can be worked around by setting a value via
--settonull.This to me seems like something to do with the YAML parser where a null value is not received or parsed, whereas the
--setparser can pick up these null values and propagate them down the tree as needed.jkroepke commentedon Nov 16, 2020
Thanks for the info about the attachment, I add a note.
If you are removing
from Chart.yaml everything works as expected.
I don't know if the YAML parser is wrong here but it seems like there is a different code path if dependencies are defined.
sbaier1 commentedon Nov 23, 2020
I am seeing a similar problem, except it's one layer deeper: I'm including loki-stack as a sub-chart, which then has the
lokichart as a sub-chart.I am trying to remove the resulting
loki-stack.loki.config.storage_config.filesystemkey, which i can only do usinghelm template --set loki-stack.loki.config.storage_config.filesystem=null(as you also observed).The only practical workaround appears to be to extract the chart locally and remove the actual default value itself.
Basic reproducer (helm version i used: v3.4.1):
values.yaml:jkroepke commentedon Dec 7, 2020
My workaround conflicts with
#3585
If no dependencies are defined,
helm lintwill fail.github-actions commentedon Mar 8, 2021
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
jkroepke commentedon Mar 8, 2021
.
github-actions commentedon Jun 8, 2021
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
jkroepke commentedon Jun 9, 2021
.
github-actions commentedon Sep 9, 2021
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
37 remaining items
Fix multiple bugs in values handling
github-actions commentedon Jun 27, 2023
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.
tspearconquest commentedon Jun 27, 2023
/remove-lifecycle stale
jkroepke commentedon Jun 27, 2023
Thanks for the info 👍
krokofant commentedon Jul 5, 2023
Here is my summary of some tests I've made. Will these cases be treated differently when #11440 or #12162 is merged?
Tested with helm 3.11.3.
globalmeans the value is under theglobali helm values.The number in the key is how deep the key is nested:
myKey1,myKey2etc.-f values.yaml-f values.yaml-f values.yaml-f values.yamlvalues.yaml
main.yaml
Fix multiple bugs in values handling
rptaylor commentedon Dec 14, 2023
Removing keys in subcharts was supposed to be fixed by #12162 but the bug is still present in Helm 3.13.2 and 3.13.3: #12488
The fix only works if --values is not used, so the "workaround" is to write your configuration changes into the default values.yml file without specifying it with --values or -f.
turowicz commentedon Dec 15, 2023
does it work for
-f values-file.yaml@rptaylor ?rptaylor commentedon Dec 15, 2023
No, the behaviour for -f and --values is the same.
messiahUA commentedon Jan 10, 2024
I'm experiencing this issue or similar with a chart that has a dependency. Using helm v3.13.3, executing:
helm template chart -f values1.yaml -f values2.yamlvalues1.yaml contains some key and values2.yaml sets this key to null, but helm doesn't remove the key.
ravnalexquinn commentedon Jan 24, 2024
Ignore the below please, I found the solution to my issue.
I needed to set the cpu limits to null in my values.yaml file (specifically the file called 'values.yaml'). I was unable to override the default cpu limit values when using a file that I passed using '--values somefile.yaml', but was able to do it when I overwrote it in the main values.yaml
original post:
I'm also still seeing what seems to be the bug in v3.14.0
The following is defined in the values.yaml of a dependency sub-chart:
If I set the below in my chart's values yaml the cpu limit is not removed from the sub-chart's values as it should be:
Applied using:
helm template . --values my-values.yamlAlso tried using:
helm template . --set chartname.foo.resources.limits.cpu=null --values my-values.yamlto no availfeat: vendor lakekeeper and trino as tier-chart dependencies