Created
May 25, 2019 09:32
-
-
Save ipedrazas/b375adf7e2f0bf83d229b1d8eafa0676 to your computer and use it in GitHub Desktop.
Conftest with Kubectl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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