Skip to content

Commit

Permalink
Merge pull request #17 from ricklambrechts/notification-config
Browse files Browse the repository at this point in the history
Added extra notification config fields
  • Loading branch information
tananaev authored Nov 7, 2022
2 parents da09c97 + ba3b48f commit 235434a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
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.1.3
version: 1.2.0
appVersion: "4.13"
dependencies:
- name: mysql
Expand Down
35 changes: 35 additions & 0 deletions charts/traccar/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -354,5 +354,40 @@ data:
{{- if .Values.traccar.sms.enable }}
<entry key='sms.enable'>{{ .Values.traccar.sms.enable }}</entry>
{{- end }}
{{- if .Values.traccar.sms.http }}
{{- if .Values.traccar.sms.http.url }}
<entry key='sms.http.url'>{{ .Values.traccar.sms.http.url }}</entry>
{{- end }}
{{- if .Values.traccar.sms.http.authorization }}
<entry key='sms.http.authorization'>{{ .Values.traccar.sms.http.authorization }}</entry>
{{- end }}
{{- if .Values.traccar.sms.http.template }}
<entry key='sms.http.template'>{{ .Values.traccar.sms.http.template }}</entry>
{{- end }}
{{- end }}
{{- end }}

{{- if .Values.traccar.notificator }}
{{- if .Values.traccar.notificator.types }}
<entry key='notificator.types'>{{ .Values.traccar.notificator.types }}</entry>
{{- end }}
{{- if .Values.traccar.notificator.traccar }}
{{- if .Values.traccar.notificator.traccar.key }}
<entry key='notificator.traccar.key'>{{ .Values.traccar.notificator.traccar.key }}</entry>
{{- end }}
{{- end }}
{{- if .Values.traccar.notificator.firebase }}
{{- if .Values.traccar.notificator.firebase.serviceAccount }}
<entry key='notificator.firebase.serviceAccount'>{{ .Values.traccar.notificator.firebase.serviceAccount }}</entry>
{{- end }}
{{- end }}
{{- if .Values.traccar.notificator.telegram }}
{{- if .Values.traccar.notificator.telegram.key }}
<entry key='notificator.telegram.key'>{{ .Values.traccar.notificator.telegram.key }}</entry>
{{- end }}
{{- if .Values.traccar.notificator.telegram.chatId }}
<entry key='notificator.telegram.chatId'>{{ .Values.traccar.notificator.telegram.chatId }}</entry>
{{- end }}
{{- end }}
{{- end }}
</properties>

0 comments on commit 235434a

Please sign in to comment.