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

a --strict mode for build? #16

Closed
monopole opened this issue May 18, 2018 · 4 comments
Closed

a --strict mode for build? #16

monopole opened this issue May 18, 2018 · 4 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@monopole
Copy link
Contributor

Such a mode would advise user about poor idioms YAML, or features about to be deprecated,

@Liujingfang1 Liujingfang1 added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 14, 2018
@Liujingfang1
Copy link
Contributor

Kustomize build outputs yaml syntax failures and deprecation messages. Not necessary to have one more mode for showing those.

@mitchnielsen
Copy link

My use case for --strict would be in a CI environment to fail the build if Kustomize returns any errors. Without this flag, is there a way I can accomplish this?

@Liujingfang1
Copy link
Contributor

You can check the exit code of kustomize build. When it is non zero, you can set the CI build to fail.

@mitchnielsen
Copy link

Ah, my builds continued on even with the failure so I had assumed it was returning a 0 exit code. I see now that it's 1. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants