From 36fcb165ebadb94024b97b855900b3dc6a11fc4d Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Mon, 21 Jul 2025 16:37:53 +0200 Subject: [PATCH] [fake_minor_update.sh] introduce VERSION var Adds VERSION var to simplify bumps on new FR. Jira: OSPRH-18397 Signed-off-by: Martin Schuppert --- hack/fake_minor_update.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hack/fake_minor_update.sh b/hack/fake_minor_update.sh index 0e9a16746f..a4aaa759af 100644 --- a/hack/fake_minor_update.sh +++ b/hack/fake_minor_update.sh @@ -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