-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1258 from Prafulrakhade/release-1.2.1.x
[MOSIP-33380] added helm and install script for resident-services
- Loading branch information
Showing
26 changed files
with
2,134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Validate / Publish helm charts | ||
|
||
on: | ||
release: | ||
types: [published] | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
paths: | ||
- 'helm/**' | ||
workflow_dispatch: | ||
inputs: | ||
IGNORE_CHARTS: | ||
description: 'Provide list of charts to be ignored separated by pipe(|)' | ||
required: false | ||
default: '""' | ||
type: string | ||
CHART_PUBLISH: | ||
description: 'Chart publishing to gh-pages branch' | ||
required: false | ||
default: 'NO' | ||
type: string | ||
options: | ||
- YES | ||
- NO | ||
INCLUDE_ALL_CHARTS: | ||
description: 'Include all charts for Linting/Publishing (YES/NO)' | ||
required: false | ||
default: 'NO' | ||
type: string | ||
options: | ||
- YES | ||
- NO | ||
push: | ||
branches: | ||
- '!release-branch' | ||
- '!master' | ||
- 1.* | ||
- 0.* | ||
- develop | ||
- MOSIP* | ||
- release* | ||
paths: | ||
- './helm/**' | ||
|
||
jobs: | ||
chart-lint-publish: | ||
uses: mosip/kattu/.github/workflows/chart-lint-publish.yml@master | ||
with: | ||
CHARTS_DIR: ./helm | ||
CHARTS_URL: https://mosip.github.io/mosip-helm | ||
REPOSITORY: mosip-helm | ||
BRANCH: gh-pages | ||
INCLUDE_ALL_CHARTS: "${{ inputs.INCLUDE_ALL_CHARTS || 'NO' }}" | ||
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" | ||
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" | ||
secrets: | ||
TOKEN: ${{ secrets.ACTION_PAT }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Resident Services | ||
|
||
## Install | ||
```sh | ||
./install.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. | ||
* This particular functionality caters to scenarios where the script needs to be employed on a server utilizing self-signed SSL certificates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] │ | ||
└─────────────────────────────────────────────────────────────────────┘ | ||
``` |
Oops, something went wrong.