Commit Graph

13 Commits

Author SHA1 Message Date
George Jenkins a1f8802de9
Merge pull request #30553 from Zhanweelee/add_mustToYaml_support
build-test / build (push) Has been cancelled Details
CodeQL / Analyze (go) (push) Has been cancelled Details
golangci-lint / golangci-lint (push) Has been cancelled Details
release / release (push) Has been cancelled Details
release / canary-release (push) Has been cancelled Details
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled Details
feat: Add mustToYaml and mustToJson template functions
2025-05-06 20:56:40 -07:00
Benoit Tigeot e2461de3c2
Fix test with toml bump
Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
2025-04-19 00:48:23 +02:00
Zhanwei Li 34b679e0cc feat: Add mustToYaml and mustToJson template functions
Introduces two new template functions that marshal data to YAML and
JSON, respectively, and panic on errors. This allows for strict
validation of template output formats.

Signed-off-by: Zhanwei Li <zhanweelee@gmail.com>
2025-02-20 14:23:49 +08:00
Fred Heinecke 30ce031d77 Merge branch 'main' into feat/add-toyamlpretty-1 2024-09-12 13:00:22 -05:00
Fred Heinecke 73f1dcc1d9 Added `toYamlPretty` template function
Signed-off-by: Fred Heinecke <fred.heinecke@goteleport.com>
2023-12-12 20:42:51 -06:00
Dominik Müller 266ab5af05 test(pkg/engine): add tests for TOML parsing
Signed-off-by: Dominik Müller <mail@dominikm.de>
2023-04-25 14:07:13 +02:00
Matthew Fisher aa6e82bac8
fix: use `go install` instead of `go get`
Signed-off-by: Matthew Fisher <matt.fisher@fermyon.com>
2022-07-06 13:34:15 -07:00
Matt Butcher bb47286f09
fix linting error with lookup function (#7969)
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2020-04-22 10:09:34 -06:00
Matt Farina 3b8521c1f0
Updating sprig and semver to newer versions
Note, there is an issue with a dependency of sprig changing
behavior. A test has been added with a description to catch if a
behavior breaking change of mergo is used.

See https://github.com/imdario/mergo/issues/139 for the mergo
issue and sprig for further details on handling this in the
future.

Closes  #7533

Signed-off-by: Matt Farina <matt@mattfarina.com>
2020-04-16 14:12:30 -04:00
Tuan 97c68adc4d
Add fromYamlArray and fromJsonArray template helpers (#7712)
Signed-off-by: Tuan Nguyen <nmtuan.dev@gmail.com>
2020-03-27 19:39:41 -06:00
KUOKA Yusuke 4c351c7248 fix(v3): fix type error while merging map loaded with `fromYaml` template func (#6630)
Fixes #6626

Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
2019-10-10 16:37:54 +01:00
Thomas O'Donnell 213f714604 Stop Lint from breaking when using required
Have updated the required filter so that it doesn't break when linting a
chart. This work is based off #4221 and #4748 which didn't make it into
the v3 branch.

Signed-off-by: Thomas O'Donnell <andy.tom@gmail.com>
2019-06-13 20:32:37 +02:00
Adam Reese 849f27d11f
ref(pkg/engine): make template specific functions private
Make template specific functions private to ensure they not misused and
make unit tests simpler.  We may export the template helpers later if
needed.

This lays the foundation for the new chart pipeline.

Signed-off-by: Adam Reese <adam@reese.io>
2019-03-06 15:45:52 -08:00