-
Notifications
You must be signed in to change notification settings - Fork 33
Bugfix: Fix/forward type config #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Looks like this has unrelated commit. |
cd3fcc1 to
5622ee6
Compare
|
Oops. Fixed. |
- Update forward configuration to use proper type field - Improve configuration schema structure for better compatibility - Add configurable probe settings for deployment flexibility
63aedfd to
d94208a
Compare
|
@filippolmt - is this one of interest? |
| {{- if .Values.traccar.forward.type }} | ||
| <entry key='forward.type'>{{ .Values.traccar.forward.type }}</entry> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {{- 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 }} |
There was a problem hiding this comment.
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.
Fixes #32