Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ DSD-3698 ] Removed esignet-softhsm from install-all.sh... #522

Merged
merged 2 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/db-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'db_scripts/**'
workflow_dispatch:
inputs:
message:
Expand Down
25 changes: 25 additions & 0 deletions helm/esignet/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ if [ $# -ge 1 ] ; then
export KUBECONFIG=$1
fi

SOFTHSM_NS=softhsm
SOFTHSM_CHART_VERSION=12.0.2

echo Create $SOFTHSM_NS namespace
kubectl create ns $SOFTHSM_NS

NS=esignet
CHART_VERSION=1.0.1

Expand All @@ -15,8 +21,27 @@ echo Create $NS namespace
kubectl create ns $NS

function installing_esignet() {

echo Istio label
kubectl label ns $SOFTHSM_NS istio-injection=enabled --overwrite
helm repo add mosip https://mosip.github.io/mosip-helm
helm repo update

echo Installing Softhsm for esignet
helm -n $SOFTHSM_NS install softhsm-esignet mosip/softhsm -f softhsm-values.yaml --version $SOFTHSM_CHART_VERSION --wait
echo Installed Softhsm for esignet

echo Copy configmaps
./copy_cm_func.sh configmap global default config-server

echo Copy secrets
./copy_cm_func.sh secret softhsm-esignet softhsm config-server

kubectl -n config-server set env --keys=mosip-esignet-host --from configmap/global deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_
kubectl -n config-server set env --keys=security-pin --from secret/softhsm-esignet deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_SOFTHSM_ESIGNET_
kubectl -n config-server rollout restart deploy config-server
kubectl -n config-server get deploy -o name | xargs -n1 -t kubectl -n config-server rollout status

./keycloak-init.sh

echo Please enter the recaptcha admin site key for domain $ESIGNET_HOST
Expand Down
25 changes: 1 addition & 24 deletions helm/install-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,11 @@ fi

ROOT_DIR=`pwd`

SOFTHSM_NS=softhsm
SOFTHSM_CHART_VERSION=12.0.2

echo Create $SOFTHSM_NS namespace
kubectl create ns $SOFTHSM_NS

function installing_All() {
echo Istio label
kubectl label ns $SOFTHSM_NS istio-injection=enabled --overwrite

helm repo add mosip https://mosip.github.io/mosip-helm
helm repo update

echo Installing Softhsm for esignet
helm -n $SOFTHSM_NS install softhsm-esignet mosip/softhsm -f softhsm-values.yaml --version $SOFTHSM_CHART_VERSION --wait
echo Installed Softhsm for esignet

echo Copy configmaps
./copy_cm_func.sh configmap global default config-server

echo Copy secrets
./copy_cm_func.sh secret softhsm-esignet softhsm config-server

kubectl -n config-server set env --keys=mosip-esignet-host --from configmap/global deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_
kubectl -n config-server set env --keys=security-pin --from secret/softhsm-esignet deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_SOFTHSM_ESIGNET_
kubectl -n config-server rollout restart deploy config-server
kubectl -n config-server get deploy -o name | xargs -n1 -t kubectl -n config-server rollout status


declare -a module=("redis"
"esignet"
"oidc-ui"
Expand Down
Loading