Skip to content

Commit

Permalink
[MOSIP-33380] added helm and install script for resident-ui
Browse files Browse the repository at this point in the history
Signed-off-by: techno-467 <[email protected]>
  • Loading branch information
Prafulrakhade committed May 29, 2024
1 parent fce7455 commit 5bfcffc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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 @@ -12,7 +12,7 @@ on:
IGNORE_CHARTS:
description: 'Provide list of charts to be ignored separated by pipe(|)'
required: false
default: ''
default: '""'
type: string
CHART_PUBLISH:
description: 'Chart publishing to gh-pages branch'
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
REPOSITORY: mosip-helm
BRANCH: gh-pages
INCLUDE_ALL_CHARTS: "${{ inputs.INCLUDE_ALL_CHARTS || 'NO' }}"
IGNORE_CHARTS: "${{ inputs.IGNORE_CHARTS || '' }}"
IGNORE_CHARTS: "${{ inputs.IGNORE_CHARTS || '\"\"' }}"
CHART_PUBLISH: "${{ inputs.CHART_PUBLISH || 'YES' }}"
LINTING_CHART_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/chart-schema.yaml"
LINTING_LINTCONF_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/lintconf.yaml"
Expand Down
4 changes: 2 additions & 2 deletions deploy/copy_cm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# DST_NS: Destination namespace

function copying_cm() {
COPY_UTIL=.copy_cm_func.sh
COPY_UTIL=./copy_cm_func.sh
DST_NS=resident

$COPY_UTIL configmap global default $DST_NS
Expand All @@ -18,4 +18,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
3 changes: 3 additions & 0 deletions deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ function installing_resident() {
ENABLE_INSECURE='--set enable_insecure=true';
fi

API_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-api-internal-host})
RESIDENT_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-resident-host})

echo Installing Resident UI
helm -n $NS install resident-ui mosip/resident-ui --set resident.apiHost=$API_HOST --set istio.hosts\[0\]=$RESIDENT_HOST --version $RESIDENT_UI_CHART_VERSION

Expand Down

0 comments on commit 5bfcffc

Please sign in to comment.