helmCharts: kyaml fails when encounting helm charts with emty values.yaml files #5720
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
After upgrading from
5.3.0
to5.4.2
we encountered a bug where kustomize has started failing with the following error:The bug affects helm charts with an empty
values.yaml
file.We have a private helm chart where the default
values.yaml
files that is packaged alongside the chart is empty, and we typically usevaluesInline
in kustomize to pass values.The issue is that the following function returns an error due to the lack of a populated
values.yaml
file.I have found two ways to fix the issue:
valuesFile
instead of (or in addition to)valuesInline
.What did you expect to happen?
The
replaceValuesInline()
should tolerate empty helm values files.How can we reproduce it (as minimally and precisely as possible)?
Expected output
No error
Actual output
Error
Kustomize version
5.4.2
Operating system
Linux
The text was updated successfully, but these errors were encountered: