Skip to content

Commit

Permalink
Merge pull request #24 from tamcore/configmap-updates
Browse files Browse the repository at this point in the history
configMap updates
  • Loading branch information
tananaev authored Feb 20, 2023
2 parents c6d2dce + 4160552 commit f18572c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/traccar/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: traccar
description: A Helm chart for Traccar GPS Server
type: application
version: 1.5.0
version: 1.6.0
appVersion: "5.6"
dependencies:
- name: mysql
Expand Down
18 changes: 14 additions & 4 deletions charts/traccar/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "traccar.labels" . | nindent 4 }}
data:
traccar.xml: |
{{- if .Values.configOverride }}
{{- .Values.configOverride | nindent 4 }}
{{- else }}
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
Expand Down Expand Up @@ -44,7 +47,7 @@ data:
{{- if .Values.traccar.web.application }}
<entry key='web.application'>{{ .Values.traccar.web.application }}</entry>
{{- end }}
<entry key='web.healthCheck'>false</entry>
<entry key='web.disableHealthCheck'>true</entry>
{{- end }}
{{- if .Values.traccar.geocoder }}
{{- if .Values.traccar.geocoder.enable }}
Expand Down Expand Up @@ -271,6 +274,9 @@ data:
{{- end }}
{{- if .Values.traccar.mail }}
{{- if .Values.traccar.mail.smtp }}
{{- if .Values.traccar.mail.smtp.ignoreUserConfig }}
<entry key='mail.smtp.ignoreUserConfig'>{{ .Values.traccar.mail.smtp.ignoreUserConfig }}</entry>
{{- end }}
{{- if .Values.traccar.mail.smtp.host }}
<entry key='mail.smtp.host'>{{ .Values.traccar.mail.smtp.host }}</entry>
{{- end }}
Expand All @@ -296,11 +302,14 @@ data:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.traccar.mail.debug }}
<entry key='mail.debug'>{{ .Values.traccar.mail.debug }}</entry>
{{- end }}
{{- if .Values.traccar.mail.smtp.from}}
<entry key='mail.smtp.debug'>{{ .Values.traccar.mail.smtp.from}}</entry>
<entry key='mail.smtp.from'>{{ .Values.traccar.mail.smtp.from }}</entry>
{{- end }}
{{- if .Values.traccar.mail.smtp.auth }}
<entry key='mail.smtp.auth'>{{ .Values.traccar.mail.smtp.auth }}</entry>
{{- if .Values.traccar.mail.smtp.fromName }}
<entry key='mail.smtp.fromName'>{{ .Values.traccar.mail.smtp.fromName }}</entry>
{{- end }}
{{- if .Values.traccar.mail.smtp.username }}
<entry key='mail.smtp.username'>{{ .Values.traccar.mail.smtp.username }}</entry>
Expand Down Expand Up @@ -394,3 +403,4 @@ data:
{{- end }}
{{- end }}
</properties>
{{- end }}
11 changes: 11 additions & 0 deletions charts/traccar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,17 @@ externalService:
port: 5228
targetPort: thinkpower

# This allows you to provide the entire config from scratch.
# configOverride: |
# <?xml version='1.0' encoding='UTF-8'?>
# <!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
# <properties>
# <entry key='config.default'>./conf/default.xml</entry>
# <entry key='web.enable'>true</entry>
# <entry key='web.disableHealthCheck'>true</entry>
# <entry key='....'>....</entry>
# </properties>

resources: {}

nodeSelector:
Expand Down

0 comments on commit f18572c

Please sign in to comment.