Skip to content

Commit

Permalink
[MOSIP-37815] Passing the Value with Namespace
Browse files Browse the repository at this point in the history
Signed-off-by: VSIVAKALYAN <[email protected]>
  • Loading branch information
VSIVAKALYAN committed Nov 27, 2024
1 parent 03a6969 commit e8f54b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
6 changes: 3 additions & 3 deletions deploy/signup-service/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ function installing_signup() {
fi
done

read -p "Enter KAFKA_CONSUMER_GROUP_ID: " kafkaConsumerGroupId
echo Installing signup with KAFKA_CONSUMER_GROUP_ID="mock-signup-idv-kafka-$NS"

echo Installing signup
helm -n $NS install signup mosip/signup \
helm -n $NS install signup /home/siva/Videos/DSD_recordings/DSD6684/esignet-signup/helm/signup-service \
-f values.yaml --version $CHART_VERSION $ENABLE_INSECURE $plugin_option \
--set kafkaConsumerGroupId="$kafkaConsumerGroupId" \
--set kafkaConsumerGroupId="mock-signup-idv-kafka-$NS" \
--set metrics.serviceMonitor.enabled=$servicemonitorflag --wait

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status
Expand Down
2 changes: 2 additions & 0 deletions helm/signup-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ spec:
env:
- name: container_user
value: {{ .Values.containerSecurityContext.runAsUser }}
- name: KAFKA_CONSUMER_GROUP_ID
value: mock-signup-idv-kafka-{{ .Release.Namespace }}" # Using the namespace dynamically
- name: JDK_JAVA_OPTIONS
value: {{ .Values.additionalResources.javaOpts }}
{{- if .Values.pluginUrlEnv }}
Expand Down
5 changes: 0 additions & 5 deletions helm/signup-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,7 @@ updateStrategy:
## value: "bar"
##

# Other configurations...
kafkaConsumerGroupId: "" # Placeholder for user input

extraEnvVars: |
- name: KAFKA_CONSUMER_GROUP_ID
value: {{ .Values.kafkaConsumerGroupId | quote }}
- name: MOSIP_ESIGNET_HOST
valueFrom:
configMapKeyRef:
Expand Down

0 comments on commit e8f54b5

Please sign in to comment.