feat(kasm): add gamepad support (#5592)

* feat(kasm): add gamepad support

* checks for upgrade
This commit is contained in:
Stavros Kois
2022-12-22 01:02:12 +02:00
committed by GitHub
parent 6335f8df2b
commit 958dbf6d14
5 changed files with 51 additions and 2 deletions
+1 -1
View File
@@ -27,4 +27,4 @@ sources:
- https://github.com/orgs/linuxserver/packages/container/package/kasm - https://github.com/orgs/linuxserver/packages/container/package/kasm
- https://github.com/linuxserver/docker-kasm#readme - https://github.com/linuxserver/docker-kasm#readme
type: application type: application
version: 3.1.4 version: 3.2.0
+19
View File
@@ -35,6 +35,25 @@ questions:
type: string type: string
private: true private: true
default: "" default: ""
- variable: kasm
group: App Configuration
label: KASM Configuration
schema:
additional_attrs: true
type: dict
attrs:
- variable: mountUdev
label: Mount /run/udev/data
description: Mounts host's /run/udev/data to container. Know the risks first. Used for GamePad support.
schema:
type: boolean
default: false
- variable: mountInput
label: Mount /dev/input
description: Mounts host's /dev/input to container. Know the risks first. Used for GamePad support.
schema:
type: boolean
default: false
# Include{containerConfig} # Include{containerConfig}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
@@ -0,0 +1,13 @@
{{- define "kasm.udev.mount" -}}
enabled: true
type: hostPath
mountPath: /run/udev/data
hostPath: /run/udev/data
{{- end -}}
{{- define "kasm.input.mount" -}}
enabled: true
type: hostPath
mountPath: /dev/input
hostPath: /dev/input
{{- end -}}
+14 -1
View File
@@ -1,2 +1,15 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.common.loader.init" . }}
{{- if hasKey .Values "kasm" -}}
{{- if .Values.kasm.mountUdev -}}
{{- $_ := set .Values.persistence "udev" (fromYaml (include "kasm.udev.mount" .)) -}}
{{- end -}}
{{- if .Values.kasm.mountInput -}}
{{- $_ := set .Values.persistence "input" (fromYaml (include "kasm.input.mount" .)) -}}
{{- end -}}
{{- end -}}
{{/* Render the templates */}} {{/* Render the templates */}}
{{ include "tc.common.loader.all" . }} {{ include "tc.common.loader.apply" . }}
+4
View File
@@ -21,6 +21,10 @@ secretEnv:
env: env:
KASM_PORT: "{{ .Values.service.main.ports.main.port }}" KASM_PORT: "{{ .Values.service.main.ports.main.port }}"
kasm:
mountUdev: false
mountInput: false
probes: probes:
liveness: liveness:
type: HTTPS type: HTTPS