Skip to content

Instantly share code, notes, and snippets.

@abhioncbr
Last active May 14, 2020 11:03
Show Gist options
  • Save abhioncbr/350294379bca42f5788be2622ee0687c to your computer and use it in GitHub Desktop.
Save abhioncbr/350294379bca42f5788be2622ee0687c to your computer and use it in GitHub Desktop.
#!/bin/bash
# printing version of the plugin
if [[ "$1" == "version" ]]
then
echo "kubectl fpods version 0.1.0"
exit 0
fi
kubectl get pods --all-namespaces --field-selector=status.phase!=Running
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment