IMAGES=()

IMAGES+="quay.io/cephcsi/cephcsi:v3.9.0 "
IMAGES+="registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.8.0 "
IMAGES+="registry.k8s.io/sig-storage/csi-provisioner:v3.5.0 "
IMAGES+="registry.k8s.io/sig-storage/csi-attacher:v4.3.0 "
IMAGES+="registry.k8s.io/sig-storage/csi-snapshotter:v6.2.2 "
IMAGES+="registry.k8s.io/sig-storage/csi-resizer:v1.8.0 "
IMAGES+="quay.io/csiaddons/k8s-sidecar:v0.7.0 "
IMAGES+="docker.io/rook/ceph:master "


for i in $(kubectl get nodes | grep Ready | grep -v NotReady | grep -v control | awk '{print $1}') ; do
  for n in ${IMAGES[@]} ; do 
    echo "Pulling docker.dezendorf.net/$n on $i"
    talosctl -n $i image pull docker.dezendorf.net/${n}
  done
done

