-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] .templateignore does not work for variables #478
Comments
Hmm, this is because .templateignore is only honoured when whole directories (e.g. kustomize deployments) are being rendered. I'll try to find a way to make it also work with individual files, but can't say when I find time for it. Until then, you could surround the whole file with |
Surrounding with raw was the first thing i tried. It resulted in this error:
However the docs did not mention raw, so i decided to give |
That is another issue, related to YAML parsing. The parser sees a { after a key, so it assumes an object/dict is following. You have to surround the |
You are right, thanks for pointing me to quotes. |
Just cross-linking the idea with shebang, that would either allow to disable rendering, etc. per file etc.. |
Operating system
arch
Kluctl Version
latest
Kubernetes Version
latest
kubectl Version
latest
Bug description
.templateignore
seems to not work for variable files included like this:deployment.yaml
vars/global-templateignore.yaml
.templateignore
Steps to reproduce
No response
Relevant log output
The text was updated successfully, but these errors were encountered: