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 @@ -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
You can’t perform that action at this time.
0 commit comments