Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions hack/fake_minor_update.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# A quick way to test a fake minor update. Run this script, and then once the
# openstackversion reconciles (the CSV will redeploy the controller-manager)
# you can set targetVersion == 0.0.2 for a quick test
oc get csv openstack-operator.v0.4.0 -o yaml -n openstack-operators > csv.yaml
VERSION=0.4
CURRENT=${VERSION}.0
UPDATE=${VERSION}.1
oc get csv openstack-operator.v${CURRENT} -o yaml -n openstack-operators > csv.yaml
# bump them to current-podified
sed -i csv.yaml -e "s|value: .*quay.io/podified-antelope-centos9/\(.*\)@.*|value: quay.io/podified-antelope-centos9/\1:current-podified|g"
# also bump the OPENSTACK_RELEASE_VERSION value (it is the only field set like this)
sed -i csv.yaml -e "s|value: 0.4.0|value: 0.4.1|"
sed -i csv.yaml -e "s|value: ${CURRENT}|value: ${UPDATE}|"
oc apply -n openstack-operators -f csv.yaml