-
Notifications
You must be signed in to change notification settings - Fork 834
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
hack: enforce conftest and yamllint failures #2328
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: spiffxp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
logging noise, trying to keep non-commented output actionable
Use conftest to verify the policies defined in policies/
I could not get as far as "writing a failing policy and then fix it". What we have now is not quite as copy-paste friendly as a thought, and I'd rather not have this hang out until I more properly learn Rego. I did at least add some warnings for v1.22 removals we'll want to address |
/lgtm |
Add more enforcement to hack/verify.sh via:
yamllint
rules that were previously warnings (new-line-at-end-of-file
andtrailing-spaces
) to bring us to parity with theyamllint
enforcment used for kubernetes/test-infraconftest
failures based on Open Policy Agent policies defined in policies/Also tuned down the output noise from
verify-shellcheck.sh
Part of #1734