Skip to content

Commit

Permalink
Support for Raspberry Hardware /dev/video0
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrizic committed Apr 21, 2023
1 parent 9d49818 commit d1fa712
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/scrypted/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.3
version: 0.9.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "18-bullseye-lite.s6-v0.7.84"
appVersion: "18-bullseye-lite.s6-v0.7.88"

9 changes: 9 additions & 0 deletions charts/scrypted/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ spec:
volumeMounts:
- mountPath: /server/volume
name: {{ include "scrypted.fullname" . }}
{{- if .Values.raspberry.hardware }}
- mountPath: /dev/video0
name: dev-video0
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -75,3 +79,8 @@ spec:
- name: {{ include "scrypted.fullname" . }}
persistentVolumeClaim:
claimName: {{ include "scrypted.fullname" . }}
{{- if .Values.raspberry.hardware }}
- name: dev-video0
hostPath:
path: /dev/video0
{{- end }}
3 changes: 3 additions & 0 deletions charts/scrypted/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,6 @@ affinity: {}
persistence:
size: 10Gi
storageClass: ""

raspberry:
hardware: false

0 comments on commit d1fa712

Please sign in to comment.