From f001d27a8c1ebebd4b9b61920accb7d208d093d0 Mon Sep 17 00:00:00 2001 From: rahuldsce Date: Sat, 28 Mar 2020 20:48:17 +0530 Subject: [PATCH] Image path implemented based on deployment type (#202) --- src/sites/siteFour/apps/appReg.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sites/siteFour/apps/appReg.js b/src/sites/siteFour/apps/appReg.js index 5a8f74ca27..bbf3b5446b 100644 --- a/src/sites/siteFour/apps/appReg.js +++ b/src/sites/siteFour/apps/appReg.js @@ -121,6 +121,9 @@ class ClusterInstReg extends React.Component { if (form.field === fields.imageType) { form.value = currentForm.value === constant.DEPLOYMENT_TYPE_VM ? 'Qcow' : 'Docker' } + else if (form.field === fields.imagePath) { + form.value = currentForm.value === constant.DEPLOYMENT_TYPE_VM ? 'https://artifactory.mobiledgex.net/artifactory/repo-NewDevOrg' : 'docker.mobiledgex.net/newdevorg/images/server-ping-threaded:5.0' + } else if (form.field === fields.scaleWithCluster) { form.visible = currentForm.value === constant.DEPLOYMENT_TYPE_KUBERNETES ? true : false }