Rijnard van Tonder
5267c0d44a
The nil check before the range loop is redundant
...
Signed-off-by: Rijnard van Tonder <hi.teresy@gmail.com>
6 years ago
Matthew Fisher
2d77db11fa
change copyright to "Copyright The Helm Authors"
6 years ago
Matthew Fisher
f7f686f7d0
Revert "toYaml - Fix #3470 and #3410's trailing \n issues"
7 years ago
Matthew Fisher
d502f7c8a8
Merge pull request #3950 from BarryWilliams/issue3747
...
Add comments to fix linter issues
7 years ago
BarryWilliams
718578036d
Changed whitespacing in comments
7 years ago
Erik Sundell
35132d141c
toYaml - Fixes #3410 - trailing \n issue
...
`toYaml` utilized by `.Files` was introducing a new line. It is an issue since the new line is part of a functions output, it can't be whitespace chomped away so it would require a `trimSuffix "\n"` pipe. This commit trims one trailing `\n` from the toYaml output.
7 years ago
cameronconradt
6a59683c01
Update files.go
...
Should suppress the warnings about the naming of these two functions. Added TODO
7 years ago
Thibaut Rousseau
a59d212512
docs: Fix FromJson comment
7 years ago
carlory
ad2d8e434a
fix fromjson comment
7 years ago
carlory
b9d3974df0
fix func comment
7 years ago
Justin Scott
af4c243ee3
Correct punctuation and capitalization for user facing strings.
7 years ago
lead4good
bb4be33331
fixed fromYaml | toJson
8 years ago
Matt Butcher
46035c35c4
fix(tiller): fix TOML panic
...
This fixes a TOML panic by replacing one parser library with another.
The older library did not gracefully handle reflection issues, and so
was prone to panic. The new one is not great, but it doesn't seem to
panic.
Closes #2271
8 years ago
Jack Zampolin
fc60d51be9
Add toToml function
8 years ago
YuviPanda
5c52fe6ad6
Add ToJson and FromJson template functions
8 years ago
Matt Butcher
d8540d78f1
feat(tiller): add fromYaml to template functions
...
This adds a fromYaml template function.
Closes #1604
8 years ago
Andrew Stuart
1df13df88d
Include lines functions
8 years ago
Andrew Stuart
6760aa1588
Add Lines method, remove path utils (Sprig pr)
8 years ago
Andrew Stuart
0474bcbcf1
Document ToYaml function
8 years ago
Andrew Stuart
9771973888
Add AsSecrets, AsConfig methods for Files object. Move ToYaml to chartutil
8 years ago
Andrew Stuart
ec020a9e40
Improve formatting of godoc
8 years ago
Andrew Stuart
2de1728f05
feat(helm): Add Files.Glob method to permit file organization
8 years ago
Matt Butcher
b7945d05c4
ref(templates): change GetString to Get
...
This changes "pkg/chartutil".Files.Get to return a string, removes
"pkg/chartutil".Files.GetString, and adds
"pkg/chartutil".Files.GetBytes.
Closes #1020
8 years ago
Matt Butcher
033dbfe75e
feat(tiller): add Files map to templates
...
Templates can now access the non-template files in a chart by using
the '{{.Files}}' map inside of a template.
Relates to #950
8 years ago