mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
conditionally add capability
This commit is contained in:
@@ -4,4 +4,4 @@ hbStorage:
|
||||
hostPath: /mnt/{{ .Release.Name }}/data
|
||||
|
||||
hbNetwork:
|
||||
webPort: 38000
|
||||
webPort: 30000
|
||||
|
||||
@@ -4,7 +4,7 @@ hbStorage:
|
||||
hostPath: /mnt/{{ .Release.Name }}/data
|
||||
|
||||
hbNetwork:
|
||||
webPort: 38000
|
||||
webPort: 30000
|
||||
|
||||
hbConfig:
|
||||
enableAvahi: false
|
||||
|
||||
@@ -21,10 +21,12 @@ workload:
|
||||
# Without those, logs show: "Failed to start message bus: Failed to drop capabilities: Operation not permitted"
|
||||
- SETGID
|
||||
- SETUID
|
||||
# Without this, logs show: "Failed to create runtime directory /run/avahi-daemon"
|
||||
- CHOWN
|
||||
# Witout this, logs show: "Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Permission denied"
|
||||
- DAC_OVERRIDE
|
||||
{{ if .Values.hbConfig.enableAvahi }}
|
||||
# Without this, logs show: "Failed to create runtime directory /run/avahi-daemon"
|
||||
- CHOWN
|
||||
{{ end }}
|
||||
env:
|
||||
HOMEBRIDGE_CONFIG_UI_PORT: {{ .Values.hbNetwork.webPort }}
|
||||
ENABLE_AVAHI: {{ ternary "1" "0" .Values.hbConfig.enableAvahi | quote }}
|
||||
|
||||
Reference in New Issue
Block a user