File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments