-
Notifications
You must be signed in to change notification settings - Fork 41
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 #783 from MadhuMosip/release-0.9.x
MOSIP-37782 Moving code from develop to release-0.9.x branch
- Loading branch information
Showing
40 changed files
with
1,218 additions
and
576 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
Empty file.
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,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 | ||
|
||
|
||
|
||
|
||
|
Empty file.
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
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.