fix: ser2sock uses wrong device path (#1072)

This commit is contained in:
CuBiC 2021-06-30 17:31:32 +02:00 committed by GitHub
parent 4420956b18
commit 3e7ac9f00f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 5 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.0.0
description: Serial to Socket Redirector
name: ser2sock
version: 4.0.0
version: 4.0.1
kubeVersion: ">=1.16.0-0"
keywords:
- ser2sock

View File

@ -1,6 +1,6 @@
# ser2sock
![Version: 4.0.0](https://img.shields.io/badge/Version-4.0.0-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
![Version: 4.0.1](https://img.shields.io/badge/Version-4.0.1-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
Serial to Socket Redirector
@ -109,7 +109,7 @@ affinity:
| env | object | See below | environment variables. See [image docs](https://github.com/tenstartups/ser2sock) for more details. |
| env.BAUD_RATE | int | `115200` | Serial device baud rate |
| env.LISTENER_PORT | string | `"{{ .Values.service.main.ports.server.port }}"` | Port where ser2sock listens |
| env.SERIAL_DEVICE | string | `"{{ .Values.persistence.usb.hostPath }}"` | Path to the serial device |
| env.SERIAL_DEVICE | string | `"{{ .Values.persistence.usb.mountPath }}"` | Path to the serial device |
| env.TZ | string | `"UTC"` | Set the container timezone |
| image.pullPolicy | string | `"Always"` | image pull policy |
| image.repository | string | `"tenstartups/ser2sock"` | image repository |
@ -126,6 +126,12 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [4.0.1]
#### Fixed
- Default device path used by ser2sock now points to the device inside the container.
### [4.0.0]
#### Changed
@ -161,6 +167,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[4.0.1]: #401
[4.0.0]: #400
[3.0.0]: #300
[1.0.0]: #100

View File

@ -9,6 +9,12 @@ All notable changes to this application Helm chart will be documented in this fi
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
### [4.0.1]
#### Fixed
- Default device path used by ser2sock now points to the device inside the container.
### [4.0.0]
#### Changed
@ -44,6 +50,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- N/A
[4.0.1]: #401
[4.0.0]: #400
[3.0.0]: #300
[1.0.0]: #100

View File

@ -21,7 +21,7 @@ env:
# -- Port where ser2sock listens
LISTENER_PORT: "{{ .Values.service.main.ports.server.port }}"
# -- Path to the serial device
SERIAL_DEVICE: "{{ .Values.persistence.usb.hostPath }}"
SERIAL_DEVICE: "{{ .Values.persistence.usb.mountPath }}"
# -- Serial device baud rate
BAUD_RATE: 115200
@ -51,7 +51,7 @@ persistence:
usb:
enabled: false
type: hostPath
hostPath: /dev/ttyUSB0
mountPath: /dev/ttyUSB0
securityContext:
# -- (bool) Privileged securityContext may be required if USB controller is accessed directly through the host machine