Skip to content

Commit 36fcb16

Browse files
committed
[fake_minor_update.sh] introduce VERSION var
Adds VERSION var to simplify bumps on new FR. Jira: OSPRH-18397 Signed-off-by: Martin Schuppert <[email protected]>
1 parent 5f8fbc7 commit 36fcb16

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hack/fake_minor_update.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# A quick way to test a fake minor update. Run this script, and then once the
22
# openstackversion reconciles (the CSV will redeploy the controller-manager)
33
# you can set targetVersion == 0.0.2 for a quick test
4-
oc get csv openstack-operator.v0.4.0 -o yaml -n openstack-operators > csv.yaml
4+
VERSION=0.4
5+
CURRENT=${VERSION}.0
6+
UPDATE=${VERSION}.1
7+
oc get csv openstack-operator.v${CURRENT} -o yaml -n openstack-operators > csv.yaml
58
# bump them to current-podified
69
sed -i csv.yaml -e "s|value: .*quay.io/podified-antelope-centos9/\(.*\)@.*|value: quay.io/podified-antelope-centos9/\1:current-podified|g"
710
# also bump the OPENSTACK_RELEASE_VERSION value (it is the only field set like this)
8-
sed -i csv.yaml -e "s|value: 0.4.0|value: 0.4.1|"
11+
sed -i csv.yaml -e "s|value: ${CURRENT}|value: ${UPDATE}|"
912
oc apply -n openstack-operators -f csv.yaml

0 commit comments

Comments
 (0)