Created
November 2, 2018 19:12
-
-
Save SkamDart/e3b1e9b268990ace0d6fce59c869fb9d to your computer and use it in GitHub Desktop.
shell image tag match
This file contains 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
# | |
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