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

[DSD-6742] removed unwanted Env variables in values.yaml and Updated install scripts #462

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 0 additions & 5 deletions deploy/kernel/delete.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ function deleting_kernel() {
then
helm -n $NS delete auditmanager
helm -n $NS delete authmanager
helm -n $NS delete idgenerator
helm -n $NS delete masterdata
helm -n $NS delete otpmanager
helm -n $NS delete pridgenerator
helm -n $NS delete ridgenerator
helm -n $NS delete syncdata
helm -n $NS delete notifier
break
else
Expand Down
17 changes: 16 additions & 1 deletion deploy/kernel/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ $# -ge 1 ] ; then
fi

NS=kernel
CHART_VERSION=0.0.1-develop
CHART_VERSION=12.0.1

echo Create $NS namespace
kubectl create ns $NS
Expand Down Expand Up @@ -48,6 +48,21 @@ function installing_kernel() {
echo Installing notifier
helm -n $NS install notifier mosip/notifier --version $CHART_VERSION

# Array of deployment names
DEPLOYMENTS=("authmanager" "auditmanager" "otpmanager" "notifier")

# Patch all deployments to use esignet-global as configMapRef
for DEPLOYMENT in "${DEPLOYMENTS[@]}"; do
echo Patching $DEPLOYMENT to use esignet-global ConfigMap
kubectl -n $NS patch deployment $DEPLOYMENT \
--type=json \
-p='[{"op": "replace", "path": "/spec/template/spec/containers/0/envFrom/0/configMapRef/name", "value": "esignet-global"}]'
done

kubectl -n $NS set env deployment/notifier \
MOSIP_KERNEL_SMS_NUMBER_MIN_LENGTH=7 \
MOSIP_KERNEL_SMS_NUMBER_MAX_LENGTH=10

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status

echo Installed kernel services
Expand Down
10 changes: 0 additions & 10 deletions helm/signup-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,26 +286,16 @@ extraEnvVars: |
secretKeyRef:
name: keycloak-client-secrets
key: mosip_signup_client_secret
- name: MOSIP_SIGNUP_IDENTIFIER_MAX_LENGTH
value: '10'
- name: MOSIP_SIGNUP_MOCK_MANDATORY_ATTRIBUTES_CREATE
value: fullName,phone,password,preferredLang
- name: MOSIP_SIGNUP_MOCK_USERNAME_FIELD
value: phone
- name: MOSIP_SIGNUP_MOCK_LANG-BASED_ATTRIBUTES
value: fullName
- name: MOSIP_SIGNUP_SUPPORTED_LANGUAGES
value: '{''eng'',''khm''}'
- name: MOSIP_SIGNUP_IDENTIFIER_REGEX
value: ^\+855[1-9]\d{7,8}$
- name: MOSIP_SIGNUP_FULLNAME_PATTERN
value: ^[\u1780-\u17FF\u19E0-\u19FF\u1A00-\u1A9F\u0020]{1,30}$
- name: MOSIP_SIGNUP_UI_CONFIG_KEY_VALUES_FULLNAME_ALLOWED_CHARACTERS
value: ^[\u1780-\u17FF\u19E0-\u19FF\u1A00-\u1A9F\u0020]
- name: KAFKA_CONSUMER_GROUP_ID
value: mock-signup-idv-kafka
- name: MOSIP_SIGNUP_IDENTIFIER_PREFIX
value: '+855'

## ConfigMap with extra environment variables that used
##
Expand Down
Loading