Skip to content

Commit 346f3cf

Browse files
committed
add var check to non-hubble job
1 parent 592fe6f commit 346f3cf

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
@@ -127,9 +127,24 @@ stages:
127127
if [ ${{parameters.upgradeScenario}} = "true" ]
128128
then
129129
echo "Upgrade scenario is true, using upgrade azure ipam and cns version from pipeline variables"
130-
IPAM=$(UPGRADE_AZURE_IPAM_VERSION)
130+
if [ -z "$UPGRADE_AZURE_IPAM_VERSION" ]
131+
then
132+
echo "UPGRADE_AZURE_IPAM_VERSION is not set, using default value"
133+
IPAM=$(make azure-ipam-version)
134+
else
135+
IPAM=$(UPGRADE_AZURE_IPAM_VERSION)
136+
echo "UPGRADE_AZURE_IPAM_VERSION is set to $IPAM"
137+
fi
138+
139+
if [ -z "$UPGRADE_CNS_VERSION" ]
140+
then
141+
echo "UPGRADE_CNS_VERSION is not set, using default value"
142+
CNS=$(make cns-version)
143+
else
144+
CNS=$(UPGRADE_CNS_VERSION)
145+
echo "UPGRADE_CNS_VERSION is set to $CNS"
146+
fi
131147
IPAM_IMAGE_REPO=$(UPGRADE_IPAM_IMAGE_REPO)
132-
CNS=$(UPGRADE_CNS_VERSION)
133148
CNS_IMAGE_REPO=$(UPGRADE_CNS_IMAGE_REPO)
134149
echo Deploying with Azure Ipam version $IPAM from $IPAM_IMAGE_REPO and CNS version $CNS from $CNS_IMAGE_REPO
135150
else

0 commit comments

Comments
 (0)