Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipedrazas/b375adf7e2f0bf83d229b1d8eafa0676 to your computer and use it in GitHub Desktop.
Save ipedrazas/b375adf7e2f0bf83d229b1d8eafa0676 to your computer and use it in GitHub Desktop.
Conftest with Kubectl
kubectl get all -o json \
| jq -cj '.items[] | tostring+"\u0000"' \
| xargs -n1 -0 -I@ bash -c "echo '@' | conftest test -"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment