Last active
June 26, 2025 17:56
-
-
Save zulhfreelancer/a5adf80b0bd57768f85c8d5c93506991 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