Skip to content

Commit

Permalink
Merge pull request #776 from ckm007/release-1.2.1.x
Browse files Browse the repository at this point in the history
[MOSIP-34233]
  • Loading branch information
ckm007 authored Jul 18, 2024
2 parents faa7972 + 086bb80 commit f02eef6
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 46 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/chart-lint-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ on:
- 1.*
- 0.*
- develop
- MOSIP*
- release*
paths:
- './helm/**'
- 'helm/**'

jobs:
chart-lint-publish:
Expand All @@ -57,6 +56,7 @@ jobs:
LINTING_LINTCONF_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/lintconf.yaml"
LINTING_CHART_TESTING_CONFIG_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/chart-testing-config.yaml"
LINTING_HEALTH_CHECK_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/health-check-schema.yaml"
DEPENDENCIES: "mosip,https://mosip.github.io/mosip-helm;"
secrets:
TOKEN: ${{ secrets.ACTION_PAT }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
5 changes: 4 additions & 1 deletion deploy/copy_cm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
# DST_NS: Destination namespace

function copying_cm() {
UTIL_URL=https://github.com/mosip/mosip-infra/blob/master/deployment/v3/utils/copy_cm_func.sh
COPY_UTIL=./copy_cm_func.sh
DST_NS=pms

wget -q $UTIL_URL -O copy_cm_func.sh && chmod +x copy_cm_func.sh

$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
Expand All @@ -18,4 +21,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
copying_cm # calling function
copying_cm # calling function
33 changes: 0 additions & 33 deletions deploy/copy_cm_func.sh

This file was deleted.

3 changes: 1 addition & 2 deletions deploy/delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function deleting_pms() {
then
helm -n $NS delete pms-partner
helm -n $NS delete pms-policy
helm -n $NS delete pmp-ui
break
else
break
Expand All @@ -29,4 +28,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
deleting_pms # calling function
deleting_pms # calling function
7 changes: 1 addition & 6 deletions deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=pms
CHART_VERSION=12.1.0
PMP_UI_CHART_VERSION=12.0.1
CHART_VERSION=12.1.0-develop

API_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-api-internal-host})
PMP_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-pmp-host})
Expand All @@ -34,14 +33,10 @@ function installing_pms() {
echo Installing policy manager
helm -n $NS install pms-policy mosip/pms-policy --set istio.corsPolicy.allowOrigins\[0\].prefix=https://$PMP_HOST --version $CHART_VERSION

echo Installing pmp-ui
helm -n $NS install pmp-ui mosip/pmp-ui --set pmp.apiUrl=https://$INTERNAL_API_HOST/ --set istio.hosts=["$PMP_HOST"] --version $PMP_UI_CHART_VERSION

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status

echo Installed pms services

echo "Admin portal URL: https://$PMP_HOST/pmp-ui/"
return 0
}

Expand Down
1 change: 1 addition & 0 deletions helm/pms-partner/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
charts/
Charts.lock
2 changes: 1 addition & 1 deletion helm/pms-partner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pms-partner
description: A Helm chart for MOSIP Partner Management Service Partner service
type: application
version: 12.1.0
version: 12.1.0-develop
appVersion: ""
dependencies:
- name: common
Expand Down
1 change: 1 addition & 0 deletions helm/pms-policy/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
charts/
Charts.lock
2 changes: 1 addition & 1 deletion helm/pms-policy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pms-policy
description: A Helm chart for MOSIP Packetmanager module
type: application
version: 12.1.0
version: 12.1.0-develop
appVersion: ""
dependencies:
- name: common
Expand Down

0 comments on commit f02eef6

Please sign in to comment.