Closed jjo closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities (and 0 Security Hotspots to review)
1 Code Smell
No Coverage information
0.0% Duplication
I'm not sure i understand the issue. The current release v0.3.0 preserves all gotemplating in the resulting yaml resource files.
I have fixed the tests that runs the 'testdata/*.yamltests, and added an example in the simple.yaml file, that has gotemplate in it. And the test is validating that the resulting file (
testdata/simple.yaml.golden/simple-namespace.yaml`) contains the same template tags.
Can you share an example where this does not work?
The only reason that the code is removing the templating tags right now, is to use the yaml parser, so we can get the namespace and name of the yaml. The actual content of the file is from before we remove the gotemplate tags.
Add
--cleanup_gotemplate
flag, defaulting totrue
(current behavior).There are legitimate cases where we'd want to let gotemplate-like strings in the output files, notably Prometheus' alerting rules, which support gotemplate'd strings.