Keep glance-images pvc when change glance storage (#549)
Glance image PVC contains requires images that should be careful handled
during changing glance storage when migrate out of PVC mode for glance
storage.
Which in migrate/upgrade path, should be be correctly moved and deleted
the PVC after.
On the other hand, it's also possible to accidentally changes storage
mode out of `pvc` and lose the `glance-images` PVC which is unbearable
mistake.
Once storage mode set to `pvc, we should allow that PVC to be able to
stay and ready for reuse again until it's mannually deleted.
diff --git a/hack/sync-charts.sh b/hack/sync-charts.sh
index 9c5b56b..99bba2a 100755
--- a/hack/sync-charts.sh
+++ b/hack/sync-charts.sh
@@ -105,6 +105,12 @@
| filterdiff -p2 -x 'Chart.yaml' \
| filterdiff -p1 -i 'glance/*' \
| patch -p2 -d ${ATMOSPHERE}/charts/glance
+curl 'https://review.opendev.org/changes/openstack%2Fopenstack-helm~892704/revisions/1/patch?download' \
+ | base64 --decode \
+ | filterdiff -p1 -x 'releasenotes/*' \
+ | filterdiff -p2 -x 'Chart.yaml' \
+ | filterdiff -p1 -i 'glance/*' \
+ | patch -p2 -d ${ATMOSPHERE}/charts/glance
CINDER_VERSION=0.3.10
curl -sL https://tarballs.opendev.org/openstack/openstack-helm/cinder-${CINDER_VERSION}.tgz \