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

MOSIP-37782 Moving code from develop to release-0.9.x branch #783

Merged
merged 57 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
db5c4a5
MOSIP-35558
Sep 3, 2024
51d3478
Merge pull request #757 from jayesh12234/develop
aranaravi Sep 3, 2024
f502417
[MOSIP-35558] Updated base image tag
syedsalman3753 Sep 3, 2024
c75585b
Merge pull request #758 from syedsalman3753/patch-8
aranaravi Sep 3, 2024
a2b513c
[MOSIP-35160] Updated URL from https://github.com/mosip/mosip-infra/b…
Prafulrakhade Sep 9, 2024
97a9bbd
MOSIP-35610
Sep 10, 2024
80b4adc
Merge pull request #761 from jayesh12234/develop
aranaravi Sep 10, 2024
61fd33b
Merge pull request #759 from Prafulrakhade/develop
ckm007 Sep 10, 2024
e0cd040
MOSIP-35610
Sep 10, 2024
9620981
Merge pull request #762 from jayesh12234/develop
aranaravi Sep 10, 2024
c14ee77
[MOSIP-35421] Added values.yaml file for resident uitestrig
Mohanraj209 Sep 19, 2024
98f08cd
MOSIP-35896
Sep 19, 2024
b2582a6
Merge pull request #765 from jayesh12234/develop
aranaravi Sep 19, 2024
73b73cb
MOSIP-35988
Sep 24, 2024
f314390
Merge pull request #766 from jayesh12234/develop
aranaravi Sep 24, 2024
874a120
MOSIP-36024
Sep 25, 2024
a0fba0b
MOSIP-33383
Sep 25, 2024
7c550ac
MOSIP-36023
Sep 25, 2024
99f70c3
Merge pull request #767 from jayesh12234/develop
aranaravi Sep 26, 2024
ffe08d5
MOSIP-36024
Sep 26, 2024
abd58f7
Merge pull request #768 from jayesh12234/develop
aranaravi Sep 26, 2024
ce80a71
MOSIP-36024
Sep 26, 2024
93cffcb
Merge pull request #769 from jayesh12234/develop
aranaravi Sep 26, 2024
a73b05e
Update entrypoint.sh
jayesh12234 Sep 27, 2024
0bca867
MOSIP-33383
Sep 27, 2024
5592423
Merge remote-tracking branch 'upstream/develop' into develop
Sep 27, 2024
d461a6d
Merge remote-tracking branch 'origin/develop' into develop
Sep 27, 2024
c8ffd7a
MOSIP-33383
Sep 27, 2024
56d83ea
MOSIP-33383
Sep 27, 2024
984ee34
Merge pull request #771 from jayesh12234/develop
aranaravi Sep 27, 2024
bd9b937
MOSIP-33383
Sep 27, 2024
2cacd1e
MOSIP-36166
Sep 30, 2024
a817099
Merge pull request #774 from jayesh12234/develop
aranaravi Sep 30, 2024
e817001
[MOSIP-35892] Updated helm charts to add range
Rakshithb1 Oct 18, 2024
dd03809
Merge branch 'mosip:develop' into develop
Mohanraj209 Oct 23, 2024
d79f6cb
[MOSIP-35421] Moved installtion scripts of resident uitestrig.
Mohanraj209 Oct 23, 2024
af551d3
Merge pull request #775 from Rakshithb1/develop
ckm007 Oct 28, 2024
b87fdf3
Merge pull request #763 from Mohanraj209/develop
ckm007 Oct 28, 2024
6a515b4
MOSIP-36205
Oct 29, 2024
b9e9964
Merge pull request #776 from jayesh12234/develop
aranaravi Oct 29, 2024
f65bc31
MOSIP-36205
Oct 29, 2024
d0136bd
Merge pull request #777 from jayesh12234/develop
aranaravi Oct 29, 2024
37e0c0a
MOSIP-34689 added regex validation for email and phone
MadhuMosip Nov 4, 2024
1006606
Merge pull request #778 from MadhuMosip/develop
aranaravi Nov 4, 2024
5332193
MOSIP-37266 Passing lang code in profile API
MadhuMosip Nov 7, 2024
5d12f9d
Merge pull request #779 from MadhuMosip/develop
aranaravi Nov 7, 2024
a72af69
Update push-trigger.yml to change kattu version
Mahesh-Binayak Nov 18, 2024
6064158
Merge pull request #781 from Mahesh-Binayak/patch-1
Prafulrakhade Nov 18, 2024
11639a8
MOSIP-37782 removed hardcoded language value and displying language d…
MadhuMosip Nov 25, 2024
d0261ff
MOSIP-37782 removed log in header component
MadhuMosip Nov 25, 2024
ee8dd7b
MOSIP-37782 removed haed coded values
MadhuMosip Nov 25, 2024
b08cd45
Merge pull request #782 from MadhuMosip/develop
aranaravi Nov 25, 2024
859682a
MOSIP-37782 Moving new changes from develop to release-0.9.x
MadhuMosip Nov 25, 2024
e3b3f32
[MOSIP-35421] Moved installtion scripts of resident uitestrig.
Mohanraj209 Oct 23, 2024
54c17bb
[MOSIP-35421] Added copy_cm.sh and copy_secrets.sh files
MadhuMosip Nov 25, 2024
27ec921
[MOSIP-35421] Removed copy_cm.sh and copy_secrets.sh files
MadhuMosip Nov 25, 2024
5c5ac65
[MOSIP-35421] Added copy_cm.sh and copy_secrets.sh files
MadhuMosip Nov 25, 2024
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
23 changes: 11 additions & 12 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ on:
- '!release-branch'
- release-*
- master
- develop
- develop-*
- develop*
- 1*
- MOSIP*

Expand Down Expand Up @@ -57,7 +56,7 @@ jobs:
sonar-analysis:
needs: build-resident-ui
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/npm-sonar-analysis.yml@master
uses: mosip/kattu/.github/workflows/npm-sonar-analysis.yml@develop
with:
SERVICE_LOCATION: resident-ui
SONAR_URL: 'https://sonarcloud.io'
Expand All @@ -66,8 +65,8 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
build-maven-residenttest:
uses: mosip/kattu/.github/workflows/maven-build.yml@master
build-maven-uitest-resident:
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: ./residenttest
BUILD_ARTIFACT: residenttest
Expand All @@ -87,12 +86,12 @@ jobs:
SERVICE_LOCATION: residenttest
BUILD_ARTIFACT: residenttest-local
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
ref: ${{ github.ref }}
java-version: 11
distribution: 'temurin'
java-version: '21'
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

Expand Down Expand Up @@ -146,7 +145,7 @@ jobs:
BUILD_ARTIFACT: 'residenttest-local'
fail-fast: false
name: ${{ matrix.SERVICE_NAME }}
uses: mosip/kattu/.github/workflows/docker-build.yml@master
uses: mosip/kattu/.github/workflows/docker-build.yml@master-java21
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
Expand All @@ -172,7 +171,7 @@ jobs:
sonar_analysis_residenttest:
needs: build-residentuitests-local
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: residenttest
SONAR_URL: 'https://sonarcloud.io'
Expand Down
2 changes: 1 addition & 1 deletion deploy/copy_cm.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# DST_NS: Destination namespace

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

Expand Down
33 changes: 33 additions & 0 deletions deploy/copy_cm_func.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
# Copy configmap and secret from one namespace to another.
# ./copy_cm_func.sh <resource> <configmap_name> <source_namespace> <destination_namespace> [name]
# Parameters:
# resource: configmap|secret
# name: Optional new name of the configmap or secret in destination namespace. This may be needed if there is
# clash of names

if [ $1 = "configmap" ]
then
RESOURCE=configmap
elif [ $1 = "secret" ]
then
RESOURCE=secret
else
echo "Incorrect resource $1. Exiting.."
exit 1
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 -
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





2 changes: 1 addition & 1 deletion deploy/copy_secrets.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# DST_NS: Destination namespace

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

Expand Down
11 changes: 11 additions & 0 deletions deploy/README.md → deploy/resident-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
```sh
./install.sh
```

## Restart
```sh
./restart.sh
```

## Delete
```sh
./delete.sh
```

* During the execution of the `install.sh` script, a prompt appears requesting information regarding the presence of a public domain and a valid SSL certificate on the server.
* If the server lacks a public domain and a valid SSL certificate, it is advisable to select the `n` option. Opting it will enable the `init-container` with an `emptyDir` volume and include it in the deployment process.
* The init-container will proceed to download the server's self-signed SSL certificate and mount it to the specified location within the container's Java keystore (i.e., `cacerts`) file.
Expand Down
39 changes: 39 additions & 0 deletions deploy/resident-ui/certs_upload/postman/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Resident Cert Upload (_Work-in-progress_)

The folder here contains Postman Collection to upload RESIDENT certs.

## Prerequisites
Install Postman (browser or command line). The command line version is called `newman`.

## Run
* Inspect `env.json` for any changes in default params.
* Run on command line
```sh
newman run collection.json -e env.json --env-var 'url=https://xxx.yyy.zzz' --env-var 'admin-client-secret=xxxxxxxxxxxx'
```

output:

```

┌─────────────────────────┬─────────────────────┬─────────────────────┐
│ │ executed │ failed │
├─────────────────────────┼─────────────────────┼─────────────────────┤
│ iterations │ 1 │ 0 │
├─────────────────────────┼─────────────────────┼─────────────────────┤
│ requests │ 8 │ 0 │
├─────────────────────────┼─────────────────────┼─────────────────────┤
│ test-scripts │ 8 │ 0 │
├─────────────────────────┼─────────────────────┼─────────────────────┤
│ prerequest-scripts │ 4 │ 0 │
├─────────────────────────┼─────────────────────┼─────────────────────┤
│ assertions │ 9 │ 0 │
├─────────────────────────┴─────────────────────┴─────────────────────┤
│ total run duration: 3.7s │
├─────────────────────────────────────────────────────────────────────┤
│ total data received: 7.16KB (approx) │
├─────────────────────────────────────────────────────────────────────┤
│ average response time: 432ms [min: 112ms, max: 1461ms, s.d.: 413ms] │
└─────────────────────────────────────────────────────────────────────┘

```
Loading
Loading