Additional YAML document header when rendering CRDs to stdout #12953
Labels
bug
Categorizes issue or PR as related to a bug.
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Output of
helm version
:Context: the CI for our charts renders all the content including CRDs before piping the result to kyverno to check compliance with internal policies. This step fails because helm produces empty documents.
This bug arises only for CRDs when rendering to stdout, if the yaml file for the CRD in the subchart starts with the document separator
---
.To reproduce, in this repository:
The output:
After looking at the code, I suspect that the problem lies in this code that directly write the crd file content:
helm/pkg/action/action.go
Line 190 in 14d0c13
The text was updated successfully, but these errors were encountered: