Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Last active June 26, 2025 17:56
Show Gist options
  • Save zulhfreelancer/a5adf80b0bd57768f85c8d5c93506991 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/a5adf80b0bd57768f85c8d5c93506991 to your computer and use it in GitHub Desktop.

Revisions

  1. zulhfreelancer revised this gist Apr 17, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions kubectl-jq-select-not-null.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    # List all deleted pods
    kubectl get pods -o json | jq -r '.items[] | select(.metadata.deletionTimestamp != null)'
  2. zulhfreelancer revised this gist Nov 30, 2023. No changes.
  3. zulhfreelancer created this gist Nov 30, 2023.
    1 change: 1 addition & 0 deletions kubectl-jq-select-not-null.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    kubectl get pods -o json | jq -r '.items[] | select(.metadata.deletionTimestamp != null)'