Forked from zulhfreelancer/kubectl-jq-select-not-null.sh
Created
June 26, 2025 17:56
-
-
Save ergoz/2289db66e87914dc79936531ec1e2435 to your computer and use it in GitHub Desktop.
kubectl/jq - How to select/filter not `null` objects?
This file contains hidden or 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
# List all deleted pods | |
kubectl get pods -o json | jq -r '.items[] | select(.metadata.deletionTimestamp != null)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment