diff --git a/library/ix-dev/charts/home-assistant/Chart.yaml b/library/ix-dev/charts/home-assistant/Chart.yaml index 121a1498dd..c5f38dce8c 100644 --- a/library/ix-dev/charts/home-assistant/Chart.yaml +++ b/library/ix-dev/charts/home-assistant/Chart.yaml @@ -4,7 +4,7 @@ description: Home Assistant is an open source home automation that puts local co annotations: title: Home Assistant type: application -version: 2.0.25 +version: 2.0.26 apiVersion: v2 appVersion: 2024.5.5 kubeVersion: '>=1.16.0-0' diff --git a/library/ix-dev/charts/home-assistant/ci/devices-values.yaml b/library/ix-dev/charts/home-assistant/ci/devices-values.yaml new file mode 100644 index 0000000000..86f6ba7d5a --- /dev/null +++ b/library/ix-dev/charts/home-assistant/ci/devices-values.yaml @@ -0,0 +1,18 @@ +haConfig: + allowDevices: true + +haNetwork: + webPort: 31000 + +haStorage: + config: + type: pvc + media: + type: pvc + pgData: + type: pvc + pgBackup: + type: emptyDir + emptyDirConfig: + medium: "" + size: "" diff --git a/library/ix-dev/charts/home-assistant/questions.yaml b/library/ix-dev/charts/home-assistant/questions.yaml index e7133a0b6a..3d3659548c 100644 --- a/library/ix-dev/charts/home-assistant/questions.yaml +++ b/library/ix-dev/charts/home-assistant/questions.yaml @@ -33,6 +33,38 @@ questions: $ref: - definitions/timezone + - variable: haConfig + label: "" + group: Home Assistant Configuration + schema: + type: dict + attrs: + - variable: allowDevices + label: Allow Devices + description: | + Allow devices to be added to Home Assistant. + Keep in mind that this will make the container to run with elevated privileges
+ and privilege escalation. Use with caution. + schema: + type: boolean + default: false + - variable: additionalEnvs + label: Additional Environment Variables + description: Additional environment variables for Home Assistant. + schema: + type: list + items: + - variable: name + label: Name + schema: + type: string + required: true + - variable: value + label: Value + schema: + type: string + required: true + - variable: podOptions label: "" group: Advanced Pod Configuration @@ -110,7 +142,6 @@ questions: default: 568 required: true - - variable: haStorage label: "" group: Storage Configuration diff --git a/library/ix-dev/charts/home-assistant/templates/_home-assistant.tpl b/library/ix-dev/charts/home-assistant/templates/_home-assistant.tpl index 39ff6168ee..955bfa25a8 100644 --- a/library/ix-dev/charts/home-assistant/templates/_home-assistant.tpl +++ b/library/ix-dev/charts/home-assistant/templates/_home-assistant.tpl @@ -17,6 +17,8 @@ workload: runAsUser: 0 runAsGroup: 0 runAsNonRoot: false + privileged: {{ .Values.haConfig.allowDevices | default false }} + allowPrivilegeEscalation: {{ .Values.haConfig.allowDevices | default false }} readOnlyRootFilesystem: false capabilities: add: diff --git a/library/ix-dev/charts/home-assistant/values.yaml b/library/ix-dev/charts/home-assistant/values.yaml index 826383ebd5..dcd61288ba 100644 --- a/library/ix-dev/charts/home-assistant/values.yaml +++ b/library/ix-dev/charts/home-assistant/values.yaml @@ -25,6 +25,7 @@ podOptions: options: [] haConfig: + allowDevices: false additionalEnvs: [] haNetwork: