Skip to content

Conversation

@rossigee
Copy link

Fixes #32

@tananaev
Copy link
Member

Looks like this has unrelated commit.

@rossigee rossigee force-pushed the fix/forward-type-config branch from cd3fcc1 to 5622ee6 Compare August 21, 2025 23:12
@rossigee
Copy link
Author

Oops. Fixed.

- Update forward configuration to use proper type field
- Improve configuration schema structure for better compatibility
- Add configurable probe settings for deployment flexibility
@rossigee rossigee force-pushed the fix/forward-type-config branch from 63aedfd to d94208a Compare August 21, 2025 23:50
@rossigee
Copy link
Author

rossigee commented Dec 1, 2025

@filippolmt - is this one of interest?

Comment on lines +263 to +264
{{- if .Values.traccar.forward.type }}
<entry key='forward.type'>{{ .Values.traccar.forward.type }}</entry>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- if .Values.traccar.forward.type }}
<entry key='forward.type'>{{ .Values.traccar.forward.type }}</entry>
{{- $type := .Values.traccar.forward.type | default "url" -}}
{{- $allowed := list "url" "json" "amqp" "kafka" "mqtt" "redis" "wialon" -}}
{{- if not (has $t $allowed) }}
{{- fail (printf "forward.type '%s' is invalid. Allowed values: %v" $t $allowed) -}}
{{- end }}
<entry key='forward.type'>{{ $type }}</entry>
{{- end }}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably do it like this.
P.S. I haven’t tested it, these are just suggestions.

Anyway, even if I modified it, I don’t have the power to approve and merge your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The config map that creates the yaml file doesn't follow the configration file schema

3 participants