Skip to content

Instantly share code, notes, and snippets.

@dkeightley
Last active March 9, 2021 21:47
Show Gist options
  • Save dkeightley/d5162efd384e237b8aa7538d0ba3b7b1 to your computer and use it in GitHub Desktop.
Save dkeightley/d5162efd384e237b8aa7538d0ba3b7b1 to your computer and use it in GitHub Desktop.
for i in $(kubectl get namespaces -o custom-columns=":metadata.name" --no-headers)
do
echo "------ $i"
kubectl get -n $i configmaps --no-headers > /dev/null | wc -l
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment