Allow one single qcow2 image in qcow bundle

Allow one image for both controller and worker nodes without having to
override site manifests

Change-Id: Ia8000051026de1897ccf487877711459a88c8ce8
This commit is contained in:
James Gu 2021-09-02 19:28:55 +00:00
parent d78f3e5c11
commit 3298be2d67

View File

@ -63,7 +63,11 @@ spec:
command:
- sh
- -c
- "cp /qcows/*.qcow2 /qcows/*.qcow2.md5sum /shared/html/images/"
- |
cp /qcows/*.qcow2 /qcows/*.qcow2.md5sum /shared/html/images/
[ -f /qcows/control-plane.qcow2 ] && cp -n /qcows/control-plane.qcow2 /shared/html/images/data-plane.qcow2
[ -f /qcows/control-plane.qcow2.md5sum ] && cp -n /qcows/control-plane.qcow2.md5sum /shared/html/images/data-plane.qcow2.md5sum
[ -f /shared/html/images/data-plane.qcow2.md5sum ] && sed -i 's/control-plane.qcow2/data-plane.qcow2/g' /shared/html/images/data-plane.qcow2.md5sum
image: "quay.io/airshipit/qcow-bundle:latest-ubuntu_focal"
imagePullPolicy: Always
volumeMounts: