conditionally add capability

This commit is contained in:
Stavros kois
2023-05-01 20:16:36 +03:00
parent ca1715c532
commit 260bd874bb
3 changed files with 6 additions and 4 deletions
@@ -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 }}