Skip to content

Commit 592fe6f

Browse files
committed
test empty upgrade vars
1 parent 677d88f commit 592fe6f

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.pipelines/cni/cilium/cilium-overlay-load-test-template.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,24 @@ stages:
189189
if [ ${{parameters.upgradeScenario}} = "true" ]
190190
then
191191
echo "Upgrade scenario is true, using upgrade azure ipam and cns version from pipeline variables"
192-
IPAM=$(UPGRADE_AZURE_IPAM_VERSION)
192+
if [ -z "$UPGRADE_AZURE_IPAM_VERSION" ]
193+
then
194+
echo "UPGRADE_AZURE_IPAM_VERSION is not set, using default value"
195+
IPAM=$(make azure-ipam-version)
196+
else
197+
IPAM=$(UPGRADE_AZURE_IPAM_VERSION)
198+
echo "UPGRADE_AZURE_IPAM_VERSION is set to $IPAM"
199+
fi
200+
201+
if [ -z "$UPGRADE_CNS_VERSION" ]
202+
then
203+
echo "UPGRADE_CNS_VERSION is not set, using default value"
204+
CNS=$(make cns-version)
205+
else
206+
CNS=$(UPGRADE_CNS_VERSION)
207+
echo "UPGRADE_CNS_VERSION is set to $CNS"
208+
fi
193209
IPAM_IMAGE_REPO=$(UPGRADE_IPAM_IMAGE_REPO)
194-
CNS=$(UPGRADE_CNS_VERSION)
195210
CNS_IMAGE_REPO=$(UPGRADE_CNS_IMAGE_REPO)
196211
echo Deploying with Azure Ipam version $IPAM from $IPAM_IMAGE_REPO and CNS version $CNS from $CNS_IMAGE_REPO
197212
else

0 commit comments

Comments
 (0)