-
Notifications
You must be signed in to change notification settings - Fork 157
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-15265] updated db-common-secrets to db-secrets #1155
Open
pramod444
wants to merge
12
commits into
mosip:develop
Choose a base branch
from
pramod444:develop-MOSIP-15265
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0752943
[MOSIP-15265] updated db-common-secrets to db-secrets
pramod444 3eafc45
[MOSIP-15265] updated postgres and config-server and masterdata-loade…
pramod444 bdb4118
[MOSIP-15265] updated config-server delete.sh script.
pramod444 12b185b
[MOSIP-15265] updated config-server delete.sh script and init_values.…
pramod444 a77007f
Merge branch 'develop' of https://github.com/mosip/mosip-infra into d…
pramod444 55dac89
Merge branch 'develop' of https://github.com/mosip/mosip-infra into d…
pramod444 697d856
Merge branch 'develop' of https://github.com/mosip/mosip-infra into d…
pramod444 2f2f7e7
Merge branch 'develop' of https://github.com/mosip/mosip-infra into d…
pramod444 2d201d6
[MOSIP-15265] Updated the db_password_gen.sh to README.md file for po…
pramod444 b4f3aca
Merge branch 'develop' of https://github.com/mosip/mosip-infra into d…
pramod444 b4d153b
Merge branch 'develop' of https://github.com/mosip/mosip-infra into d…
pramod444 5d6bd1b
Merge branch 'develop' of https://github.com/mosip/mosip-infra into d…
pramod444 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 @@ | ||
#!/bin/bash | ||
# Copy secrets from other namespaces | ||
# DST_NS: Destination namespace | ||
COPY_UTIL=../../utils/copy_cm_func.sh | ||
DST_NS=postgres | ||
SECRET_REGEX='db-.*-secret' | ||
secrets_list=$(kubectl get secrets -n db-password --no-headers -o custom-columns=':.metadata.name' | grep "$SECRET_REGEX") | ||
for secret in $secrets_list; do | ||
$COPY_UTIL secret $secret db-password $DST_NS | ||
done |
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,25 @@ | ||
#!/bin/bash | ||
# Script to initialize the DB-PASSWORD. | ||
## Usage: ./db_password_gen.sh [kubeconfig] | ||
|
||
if [ $# -ge 1 ] ; then | ||
export KUBECONFIG=$1 | ||
fi | ||
|
||
NS=db-password | ||
kubectl create ns $NS | ||
CHART_VERSION=12.0.2 | ||
helm repo update | ||
while true; do | ||
read -p "CAUTION: db-passwords will be recreated. Are you sure to regenerate?(Y/n)" yn | ||
if [ $yn = "Y" ] | ||
then | ||
echo Removing any existing installation | ||
helm -n $NS delete db-password-gen | ||
echo Initializing DB-PASSWORD | ||
helm -n $NS install db-password-gen mosip/db-password-gen -f init_values.yaml --version $CHART_VERSION | ||
break | ||
else | ||
break | ||
fi | ||
done |
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can a regex search be used here like the one used in copy_secrets.sh file? This will be hard to maintain later on when more secrets are added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes we can do that changes and add that in delete.sh script.