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

Add flag to exit with non-zero status code when not passing #1235

Open
tyxeron opened this issue Jan 7, 2025 · 1 comment
Open

Add flag to exit with non-zero status code when not passing #1235

tyxeron opened this issue Jan 7, 2025 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@tyxeron
Copy link

tyxeron commented Jan 7, 2025

Is your feature request related to a problem? Please describe.

We use preflight check in our CI infrastructure to ensure our images will pass the preflight check once we submit it. There is currently no way to tell preflight check to exit with a non-zero code in case of any failed tests.

Describe the solution you'd like.

It would be helpful to have a flag like --exit-with-failure or something similar, that will return a non-zero status code when the preflight check did not pass. The operator pipeline has --exit-with-pipelinerun-error for example.

Describe alternatives you've considered.

The workaround is to parse the output and check if passed is true.

@tyxeron tyxeron added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 7, 2025
@acornett21
Copy link
Contributor

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

2 participants