Skip to content

Commit 91c223a

Browse files
committed
Testing upgrade... v3
Signed-off-by: Jakub Stejskal <xstejs24@gmail.com>
1 parent 89b2402 commit 91c223a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.azure/scripts/setup_upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
set -x
44

5-
RELEASE=$(cat release.version)
5+
RELEASE_VERSION=$(cat release.version)
66

77
# The commands 1) and 2) are used for change tag in installation files for CO. For each branch only of them match and apply changes
88
# 1) The following command is applied only for branches, where release.version contains *SNAPSHOT* (main + others)
99
sed -i "s#:latest#:${DOCKER_TAG}#g" packaging/install/cluster-operator/*-Deployment-strimzi-cluster-operator.yaml
1010
# 2) The following command is applied only for release branches, where release.version contains a final version like 0.29.0
11-
sed -i "s#:${RELEASE}#:${DOCKER_TAG}#g" packaging/install/cluster-operator/*-Deployment-strimzi-cluster-operator.yaml
11+
sed -i "s#:${RELEASE_VERSION}#:${DOCKER_TAG}#g" packaging/install/cluster-operator/*-Deployment-strimzi-cluster-operator.yaml
1212

1313
# Change registry and org
1414
sed -i "s#/opt/${DOCKER_REGISTRY}#/opt#g" packaging/install/cluster-operator/*-Deployment-strimzi-cluster-operator.yaml

systemtest/tmt/tests/strimzi/test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
# Move to root folder of strimzi
44
cd ../../../../
55

6-
# Prepare files for upgrade
7-
./.azure/scripts/setup_upgrade.sh
8-
96
# Build connect image
107
if [[ ${IP_FAMILY} == "ipv4" || ${IP_FAMILY} == "dual" ]]; then
118
DOCKER_REGISTRY=$(hostname --ip-address | grep -oE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | awk '$1 != "127.0.0.1" { print $1 }' | head -1)
@@ -25,6 +22,9 @@ if [[ ${RELEASE:-False} == True ]]; then
2522
export DOCKER_TAG="${PACKIT_TAG_NAME}"
2623
fi
2724

25+
# Prepare files for upgrade
26+
./.azure/scripts/setup_upgrade.sh
27+
2828
echo "Using container registry '$DOCKER_REGISTRY'"
2929
echo "Using container org '$DOCKER_ORG'"
3030
echo "Using container tag '$DOCKER_TAG'"

0 commit comments

Comments
 (0)