You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running Conftest as a Kubernetes Job. In case of any failure Conftest returns non zero exit code, hence the Job is failing.
A quick and dirty solution that I came up with is to use the following command:
sh -c "conftest test --output json --all-namespaces --policy /project/policy /project/workload.yaml || true"
However, I'd love to overwrite exit code with a flag:
conftest test --exit-code 0 --output json --all-namespaces --policy /project/policy /project/workload.yaml
Do you think it makes sense to allow overwriting exit code? If yes would you be interested in reviewing a PR that adds the exit-code flag? Or please advice otherwise.
The text was updated successfully, but these errors were encountered:
Dear Maintainers,
I'm running Conftest as a Kubernetes Job. In case of any failure Conftest returns non zero exit code, hence the Job is failing.
A quick and dirty solution that I came up with is to use the following command:
However, I'd love to overwrite exit code with a flag:
Do you think it makes sense to allow overwriting exit code? If yes would you be interested in reviewing a PR that adds the exit-code flag? Or please advice otherwise.
The text was updated successfully, but these errors were encountered: