mirror of https://github.com/helm/helm
Previously, toToml returned err.Error() on marshal failure, which was inconsistent with toYaml and toJson (both return "" on error). This commit: - Changes toToml to return "" on error, aligning it with toYaml/toJson - Adds mustToToml that panics on error, consistent with mustToYaml/mustToJson - Registers mustToToml in the template function map - Adds tests covering the error-swallowing behavior and mustToToml Fixes #31430 Signed-off-by: Ilya Kiselev <kis-ilya-a@yandex.ru>pull/31949/head
parent
42f78ba60e
commit
0d6fe3c52f
Loading…
Reference in new issue