Skip to content
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

Comment can result in empty deploy "error: no objects passed to apply" #128

Open
lewismarshall opened this issue Jan 22, 2019 · 1 comment

Comments

@lewismarshall
Copy link
Contributor

When an empty yaml file is loaded - kd will error rather than move on e.g.:

# Some comment
---
yaml_key_start: bob

The template above will result in error:

[ERROR] 2019/01/22 15:02:52 main.go:241: error: no objects passed to apply
@zuzak
Copy link

zuzak commented May 12, 2021

I'd find it useful if we could add a flag to permit this. As yaml is easier than code, I've got a few yaml files with things like:

---
{{ .if PRODUCTION }}
key: value
{{ end }}
...

These resolve to an empty yaml file so return an error, whereas I'd like them to skip straight over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants