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-5495] added softhsm deployment script in inji-certify #41

Merged
merged 3 commits into from
Jun 18, 2024
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
1 change: 1 addition & 0 deletions helm/inji-certify/copy_cm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function copying_cm() {
$COPY_UTIL configmap global default $DST_NS
$COPY_UTIL configmap artifactory-share artifactory $DST_NS
$COPY_UTIL configmap config-server-share config-server $DST_NS
$COPY_UTIL configmap softhsm-certify-share softhsm $DST_NS
return 0
}

Expand Down
21 changes: 20 additions & 1 deletion helm/inji-certify/install.sh
vishwa-vyom marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,37 @@ if [ $# -ge 1 ] ; then
export KUBECONFIG=$1
fi

SOFTHSM_NS=softhsm
SOFTHSM_CHART_VERSION=0.0.1-develop

echo Create $SOFTHSM_NS namespace
kubectl create ns $SOFTHSM_NS

NS=inji-certify
CHART_VERSION=0.0.1-develop

echo Create $NS namespace
kubectl create ns $NS

function installing_inji-certify() {

echo Istio label
kubectl label ns $NS istio-injection=enabled --overwrite
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 certify
helm -n $SOFTHSM_NS install softhsm-certify mosip/softhsm -f softhsm-values.yaml --version $SOFTHSM_CHART_VERSION --wait
echo Installed Softhsm for certify

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

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

kubectl -n config-server set env --keys=mosip-injicertify-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-certify deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_SOFTHSM_CERTIFY_
kubectl -n config-server get deploy -o name | xargs -n1 -t kubectl -n config-server rollout status

echo Copy configmaps
Expand Down
7 changes: 7 additions & 0 deletions helm/inji-certify/softhsm-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
resources:
limits: {}
# cpu: 250m
# memory: 1Gi
requests:
cpu: 100m
memory: 20Mi
vishwa-vyom marked this conversation as resolved.
Show resolved Hide resolved
Loading