Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
shell image tag match
#
kubectl get cronjobs | awk '{print $1}' | xargs kubectl describe cronjob | grep 'IMAGE_TAG'
# count number of cronjobs with provided IMAGE_TAG
kubectl get cronjobs | awk '{print $1}' | xargs kubectl describe cronjob | grep 'IMAGE_TAG' | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.