Last active
December 1, 2020 06:10
-
-
Save williamcaban/27756a61f5e913dc72286d3ac85b5a97 to your computer and use it in GitHub Desktop.
Simple script to pull all images for the image streams
This file contains hidden or 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
| #!/bin/sh | |
| IMAGES=`oc get is -o go-template --template="{{range .items}}{{.metadata.name}} {{end}}" -n openshift` | |
| for i in ${IMAGES}; do | |
| echo "Pulling: $i" | |
| ./oc import-image $i --all -n openshift | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment