Просмотр исходного кода

home-assistant - fix errors during init (#2106)

* home-assistant - fix some startup errors

* bump version

* set default hostNet to false

* hide webport when hostnet is enabled
Stavros Kois 1 год назад
Родитель
Сommit
e025f217b1

+ 1 - 1
library/ix-dev/charts/home-assistant/Chart.yaml

@@ -3,7 +3,7 @@ description: Home Assistant is an open source home automation that puts local co
 annotations:
   title: Home Assistant
 type: application
-version: 2.0.2
+version: 2.0.3
 apiVersion: v2
 appVersion: 2024.1.5
 kubeVersion: '>=1.16.0-0'

+ 6 - 0
library/ix-dev/charts/home-assistant/metadata.yaml

@@ -10,6 +10,12 @@ runAsContext:
     uid: 999
     description: Postgres runs as a non-root user.
 capabilities:
+  - name: CHOWN
+    description: Home Assistant is able to change file ownership.
+  - name: FOWNER
+    description: Home Assistant is able to change file ownership.
+  - name: DAC_OVERRIDE
+    description: Home Assistant is able to bypass file permissions.
   - name: NET_BIND_SERVICE
     description: Home Assistant is able to bind to privileged ports.
   - name: NET_RAW

+ 2 - 1
library/ix-dev/charts/home-assistant/questions.yaml

@@ -77,6 +77,7 @@ questions:
           schema:
             type: int
             default: 20810
+            show_if: [["hostNetwork", "=", false]]
             min: 9000
             max: 65535
             required: true
@@ -84,7 +85,7 @@ questions:
           label: Host Network
           schema:
             type: boolean
-            default: true
+            default: false
 
   - variable: haID
     label: ""

+ 3 - 0
library/ix-dev/charts/home-assistant/templates/_home-assistant.tpl

@@ -20,6 +20,9 @@ workload:
             readOnlyRootFilesystem: false
             capabilities:
               add:
+                - CHOWN
+                - DAC_OVERRIDE
+                - FOWNER
                 - NET_BIND_SERVICE
                 - NET_RAW
           fixedEnv: