Skip to content

Instantly share code, notes, and snippets.

@williamcaban
Last active December 1, 2020 06:10
Show Gist options
  • Select an option

  • Save williamcaban/27756a61f5e913dc72286d3ac85b5a97 to your computer and use it in GitHub Desktop.

Select an option

Save williamcaban/27756a61f5e913dc72286d3ac85b5a97 to your computer and use it in GitHub Desktop.
Simple script to pull all images for the image streams
#!/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