Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhav090420 committed Oct 17, 2024
1 parent c60abd2 commit a150e07
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ service.admin.port = 50102

generic.config.service {
document.store {
appName = hypertrace-config-service-local
appName = config-service-config-test
maxPoolSize = 10
dataStoreType = mongo
mongo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ service.admin.port = 50102

generic.config.service {
document.store {
appName = hypertrace-config-service-local
appName = config-service-config-local
maxPoolSize = 10
dataStoreType = mongo
mongo {
Expand Down
10 changes: 7 additions & 3 deletions helm/templates/config-service-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ data:
{{- if .Values.database }}
{{- $dst := .Values.database.type }}
dataStoreType = {{ $dst }}
appName = {{ .Values.name }}
appName = {{ .Values.configServiceConfig.name }}
{{- range $key, $value := (index .Values "database") }}
{{- if ne $key $dst }}
Expand All @@ -23,9 +23,13 @@ data:
{{- end }}
{{ $dst }} {
{{- range $key, $value := (index .Values "configServiceConfig" (printf "%s" $dst)) }}
{{- range $key, $value := (index .Values "database" (printf "%s" $dst)) }}
{{- if $value }}
{{ $key }} = {{ $value | quote }}
{{- if hasPrefix "${?" (printf "%s" $value) }}
{{ $key }} = {{ $value }}
{{- else }}
{{ $key }} = {{- toJson $value }}
{{- end }}
{{- end }}
{{- end }}
}
Expand Down
13 changes: 13 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ spec:
value: "/var/{{ .Chart.Name }}/log/log4j2.properties"
- name: JAVA_OPTS
value: {{ .Values.javaOpts | quote }}
{{- if and .Values.database .Values.database.mongo.authEnabled }}
{{- with .Values.database.mongo.credentials }}
- name: MONGO_SERVICE_USERNAME
valueFrom:
secretKeyRef:
name: {{ .secretName }}
key: {{ .secretUsernameKey }}
- name: MONGO_SERVICE_USER_PASSWORD
valueFrom:
secretKeyRef:
name: {{.secretName }}
key: {{.secretPasswordKey }}
{{- end }}
volumeMounts:
- name: service-config
mountPath: /app/resources/configs/{{ .Chart.Name }}/application.conf
Expand Down
5 changes: 0 additions & 5 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
###########
# Deployment and Service
###########
name: hypertrace-config-service
replicaCount: 1
maxUnavailable: 0

Expand Down Expand Up @@ -81,10 +80,6 @@ serviceSelectorLabels:
configServiceConfig:
name: config-service-config
publishChangeEvents: false
dataStoreType: "mongo"
mongo:
host: mongo
url: ""

partitionerServiceConfig:
defaultProfiles:
Expand Down

0 comments on commit a150e07

Please sign in to comment.