feat(kasm): add gamepad support (#5592)
* feat(kasm): add gamepad support * checks for upgrade
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 -}}
|
||||||
@@ -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" . }}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user