diff --git a/deploy/prereg/copy_cm_func.sh b/deploy/copy_cm_func.sh old mode 100644 new mode 100755 similarity index 92% rename from deploy/prereg/copy_cm_func.sh rename to deploy/copy_cm_func.sh index e633442eea..185ae3e5f4 --- a/deploy/prereg/copy_cm_func.sh +++ b/deploy/copy_cm_func.sh @@ -21,8 +21,13 @@ fi if [ $# -ge 5 ] then kubectl -n $4 delete --ignore-not-found=true $RESOURCE $5 - kubectl -n $3 get $RESOURCE $2 -o yaml | sed "s/namespace: $3/namespace: $4/g" | sed "s/name: $2/name: $5/g" | kubectl -n $4 create -f - + kubectl -n $3 get $RESOURCE $2 -o yaml | sed "s/namespace: $3/namespace: $4/g" | sed "s/name: $2/name: $5/g" | kubectl -n $4 create -f - else kubectl -n $4 delete --ignore-not-found=true $RESOURCE $2 - kubectl -n $3 get $RESOURCE $2 -o yaml | sed "s/namespace: $3/namespace: $4/g" | kubectl -n $4 create -f - -fi + kubectl -n $3 get $RESOURCE $2 -o yaml | sed "s/namespace: $3/namespace: $4/g" | kubectl -n $4 create -f - +fi + + + + + diff --git a/deploy/prereg-apitestrig/delete.sh b/deploy/prereg-apitestrig/delete.sh index 1079002039..ca4211aa9a 100644 --- a/deploy/prereg-apitestrig/delete.sh +++ b/deploy/prereg-apitestrig/delete.sh @@ -7,12 +7,12 @@ if [ $# -ge 1 ] ; then fi function deleting_apitestrig() { - NS=mimoto + NS=prereg while true; do read -p "Are you sure you want to delete apitestrig helm charts?(Y/n) " yn if [ $yn = "Y" ] then - helm -n $NS delete apitestrig + helm -n $NS delete prereg-apitestrig break else break diff --git a/deploy/prereg-apitestrig/install.sh b/deploy/prereg-apitestrig/install.sh index f1a2b4dc91..18f36b5c6b 100644 --- a/deploy/prereg-apitestrig/install.sh +++ b/deploy/prereg-apitestrig/install.sh @@ -6,8 +6,9 @@ if [ $# -ge 1 ] ; then export KUBECONFIG=$1 fi -NS=mimoto +NS=prereg CHART_VERSION=0.0.1-develop +COPY_UTIL=../copy_cm_func.sh echo Create $NS namespace kubectl create ns $NS @@ -18,7 +19,6 @@ function installing_apitestrig() { helm repo update echo Copy Configmaps - COPY_UTIL=../copy_cm_func.sh $COPY_UTIL configmap global default $NS $COPY_UTIL configmap keycloak-host keycloak $NS $COPY_UTIL configmap artifactory-share artifactory $NS @@ -97,8 +97,8 @@ function installing_apitestrig() { echo "eSignet service is not deployed. hence will be skipping esignet related test-cases..." fi - echo Installing apitestrig - helm -n $NS install apitestrig mosip/apitestrig \ + echo Installing prereg apitestrig + helm -n $NS install prereg-apitestrig mosip/apitestrig \ --set crontime="0 $time * * *" \ -f values.yaml \ --version $CHART_VERSION \ @@ -117,7 +117,7 @@ function installing_apitestrig() { --set apitestrig.configmaps.apitestrig.NS="$NS" \ $ENABLE_INSECURE - echo Installed apitestrig. + echo Installed prereg apitestrig. return 0 } diff --git a/deploy/prereg/README.md b/deploy/prereg/README.md index d68d55418a..e42b61bb13 100644 --- a/deploy/prereg/README.md +++ b/deploy/prereg/README.md @@ -10,11 +10,15 @@ ``` ## Uninstall - ```sh ./delete.sh ``` +## Restart +```sh +./restart.sh +``` + ## Test On a browser open `https:///pre-registration-ui/`. Example `https://prereg.sandbox.xyz.net/pre-registration-ui`. Follow the instructions. You may use [sample documents](samples/) to upload during pre-registration. diff --git a/deploy/prereg/install.sh b/deploy/prereg/install.sh index 3973014d94..8bd634d211 100755 --- a/deploy/prereg/install.sh +++ b/deploy/prereg/install.sh @@ -8,6 +8,7 @@ fi NS=prereg CHART_VERSION=0.0.1-develop +COPY_UTIL=../copy_cm_func.sh echo Create $NS namespace kubectl create ns $NS