diff --git a/charts/home-assistant/2.0.3/.helmignore b/charts/home-assistant/2.0.4/.helmignore similarity index 100% rename from charts/home-assistant/2.0.3/.helmignore rename to charts/home-assistant/2.0.4/.helmignore diff --git a/charts/home-assistant/2.0.3/Chart.lock b/charts/home-assistant/2.0.4/Chart.lock similarity index 100% rename from charts/home-assistant/2.0.3/Chart.lock rename to charts/home-assistant/2.0.4/Chart.lock diff --git a/charts/home-assistant/2.0.3/Chart.yaml b/charts/home-assistant/2.0.4/Chart.yaml similarity index 97% rename from charts/home-assistant/2.0.3/Chart.yaml rename to charts/home-assistant/2.0.4/Chart.yaml index 2189c4a641..c6140f840d 100644 --- a/charts/home-assistant/2.0.3/Chart.yaml +++ b/charts/home-assistant/2.0.4/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.3 +version: 2.0.4 apiVersion: v2 appVersion: 2024.1.5 kubeVersion: '>=1.16.0-0' diff --git a/charts/home-assistant/2.0.3/README.md b/charts/home-assistant/2.0.4/README.md similarity index 100% rename from charts/home-assistant/2.0.3/README.md rename to charts/home-assistant/2.0.4/README.md diff --git a/charts/home-assistant/2.0.3/app-readme.md b/charts/home-assistant/2.0.4/app-readme.md similarity index 100% rename from charts/home-assistant/2.0.3/app-readme.md rename to charts/home-assistant/2.0.4/app-readme.md diff --git a/charts/home-assistant/2.0.3/charts/common-1.2.9.tgz b/charts/home-assistant/2.0.4/charts/common-1.2.9.tgz similarity index 100% rename from charts/home-assistant/2.0.3/charts/common-1.2.9.tgz rename to charts/home-assistant/2.0.4/charts/common-1.2.9.tgz diff --git a/charts/home-assistant/2.0.3/ci/basic-values.yaml b/charts/home-assistant/2.0.4/ci/basic-values.yaml similarity index 100% rename from charts/home-assistant/2.0.3/ci/basic-values.yaml rename to charts/home-assistant/2.0.4/ci/basic-values.yaml diff --git a/charts/home-assistant/2.0.3/ix_values.yaml b/charts/home-assistant/2.0.4/ix_values.yaml similarity index 100% rename from charts/home-assistant/2.0.3/ix_values.yaml rename to charts/home-assistant/2.0.4/ix_values.yaml diff --git a/charts/home-assistant/2.0.3/metadata.yaml b/charts/home-assistant/2.0.4/metadata.yaml similarity index 100% rename from charts/home-assistant/2.0.3/metadata.yaml rename to charts/home-assistant/2.0.4/metadata.yaml diff --git a/charts/home-assistant/2.0.3/migrations/migrate b/charts/home-assistant/2.0.4/migrations/migrate similarity index 100% rename from charts/home-assistant/2.0.3/migrations/migrate rename to charts/home-assistant/2.0.4/migrations/migrate diff --git a/charts/home-assistant/2.0.3/questions.yaml b/charts/home-assistant/2.0.4/questions.yaml similarity index 100% rename from charts/home-assistant/2.0.3/questions.yaml rename to charts/home-assistant/2.0.4/questions.yaml diff --git a/charts/home-assistant/2.0.3/templates/NOTES.txt b/charts/home-assistant/2.0.4/templates/NOTES.txt similarity index 100% rename from charts/home-assistant/2.0.3/templates/NOTES.txt rename to charts/home-assistant/2.0.4/templates/NOTES.txt diff --git a/charts/home-assistant/2.0.3/templates/_configuration.tpl b/charts/home-assistant/2.0.4/templates/_configuration.tpl similarity index 96% rename from charts/home-assistant/2.0.3/templates/_configuration.tpl rename to charts/home-assistant/2.0.4/templates/_configuration.tpl index 1c7e97d784..fc8f309449 100644 --- a/charts/home-assistant/2.0.3/templates/_configuration.tpl +++ b/charts/home-assistant/2.0.4/templates/_configuration.tpl @@ -71,6 +71,8 @@ secret: #!/bin/sh config="/config/configuration.yaml" default="/default/init" + // Attemp to get read/write access + chmod +rw "$config" || echo "Failed to set permissions on [$config]" if [ ! -f "$config" ]; then echo "File [$config] does NOT exist. Creating..." cp "$default/configuration.default" "$config" diff --git a/charts/home-assistant/2.0.3/templates/_home-assistant.tpl b/charts/home-assistant/2.0.4/templates/_home-assistant.tpl similarity index 93% rename from charts/home-assistant/2.0.3/templates/_home-assistant.tpl rename to charts/home-assistant/2.0.4/templates/_home-assistant.tpl index 68d4b1e066..39ff6168ee 100644 --- a/charts/home-assistant/2.0.3/templates/_home-assistant.tpl +++ b/charts/home-assistant/2.0.4/templates/_home-assistant.tpl @@ -60,6 +60,11 @@ workload: runAsGroup: 0 runAsNonRoot: false readOnlyRootFilesystem: false + capabilities: + add: + - CHOWN + - DAC_OVERRIDE + - FOWNER command: /default/init/script.sh {{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait" "secretName" "postgres-creds") | nindent 8 }} diff --git a/charts/home-assistant/2.0.3/templates/_migration.tpl b/charts/home-assistant/2.0.4/templates/_migration.tpl similarity index 100% rename from charts/home-assistant/2.0.3/templates/_migration.tpl rename to charts/home-assistant/2.0.4/templates/_migration.tpl diff --git a/charts/home-assistant/2.0.3/templates/_persistance.tpl b/charts/home-assistant/2.0.4/templates/_persistance.tpl similarity index 100% rename from charts/home-assistant/2.0.3/templates/_persistance.tpl rename to charts/home-assistant/2.0.4/templates/_persistance.tpl diff --git a/charts/home-assistant/2.0.3/templates/_portal.tpl b/charts/home-assistant/2.0.4/templates/_portal.tpl similarity index 100% rename from charts/home-assistant/2.0.3/templates/_portal.tpl rename to charts/home-assistant/2.0.4/templates/_portal.tpl diff --git a/charts/home-assistant/2.0.3/templates/_postgres.tpl b/charts/home-assistant/2.0.4/templates/_postgres.tpl similarity index 100% rename from charts/home-assistant/2.0.3/templates/_postgres.tpl rename to charts/home-assistant/2.0.4/templates/_postgres.tpl diff --git a/charts/home-assistant/2.0.3/templates/_service.tpl b/charts/home-assistant/2.0.4/templates/_service.tpl similarity index 100% rename from charts/home-assistant/2.0.3/templates/_service.tpl rename to charts/home-assistant/2.0.4/templates/_service.tpl diff --git a/charts/home-assistant/2.0.3/templates/common.yaml b/charts/home-assistant/2.0.4/templates/common.yaml similarity index 100% rename from charts/home-assistant/2.0.3/templates/common.yaml rename to charts/home-assistant/2.0.4/templates/common.yaml diff --git a/charts/home-assistant/2.0.3/to_keep_versions.md b/charts/home-assistant/2.0.4/to_keep_versions.md similarity index 100% rename from charts/home-assistant/2.0.3/to_keep_versions.md rename to charts/home-assistant/2.0.4/to_keep_versions.md diff --git a/charts/plex/2.0.0/.helmignore b/charts/plex/2.0.1/.helmignore similarity index 100% rename from charts/plex/2.0.0/.helmignore rename to charts/plex/2.0.1/.helmignore diff --git a/charts/plex/2.0.0/Chart.lock b/charts/plex/2.0.1/Chart.lock similarity index 100% rename from charts/plex/2.0.0/Chart.lock rename to charts/plex/2.0.1/Chart.lock diff --git a/charts/plex/2.0.0/Chart.yaml b/charts/plex/2.0.1/Chart.yaml similarity index 97% rename from charts/plex/2.0.0/Chart.yaml rename to charts/plex/2.0.1/Chart.yaml index 99eca1c211..6a0ac195da 100644 --- a/charts/plex/2.0.0/Chart.yaml +++ b/charts/plex/2.0.1/Chart.yaml @@ -3,7 +3,7 @@ description: Plex is a media server that allows you to stream your media to any annotations: title: Plex type: application -version: 2.0.0 +version: 2.0.1 apiVersion: v2 appVersion: 1.32.8.7639 kubeVersion: '>=1.16.0-0' diff --git a/charts/plex/2.0.0/README.md b/charts/plex/2.0.1/README.md similarity index 100% rename from charts/plex/2.0.0/README.md rename to charts/plex/2.0.1/README.md diff --git a/charts/plex/2.0.0/app-readme.md b/charts/plex/2.0.1/app-readme.md similarity index 100% rename from charts/plex/2.0.0/app-readme.md rename to charts/plex/2.0.1/app-readme.md diff --git a/charts/plex/2.0.0/charts/common-1.2.9.tgz b/charts/plex/2.0.1/charts/common-1.2.9.tgz similarity index 100% rename from charts/plex/2.0.0/charts/common-1.2.9.tgz rename to charts/plex/2.0.1/charts/common-1.2.9.tgz diff --git a/charts/plex/2.0.0/ci/basic-values.yaml b/charts/plex/2.0.1/ci/basic-values.yaml similarity index 100% rename from charts/plex/2.0.0/ci/basic-values.yaml rename to charts/plex/2.0.1/ci/basic-values.yaml diff --git a/charts/plex/2.0.0/ci/extra-values.yaml b/charts/plex/2.0.1/ci/extra-values.yaml similarity index 100% rename from charts/plex/2.0.0/ci/extra-values.yaml rename to charts/plex/2.0.1/ci/extra-values.yaml diff --git a/charts/plex/2.0.0/ci/hostNet-values.yaml b/charts/plex/2.0.1/ci/hostNet-values.yaml similarity index 100% rename from charts/plex/2.0.0/ci/hostNet-values.yaml rename to charts/plex/2.0.1/ci/hostNet-values.yaml diff --git a/charts/plex/2.0.0/ix_values.yaml b/charts/plex/2.0.1/ix_values.yaml similarity index 100% rename from charts/plex/2.0.0/ix_values.yaml rename to charts/plex/2.0.1/ix_values.yaml diff --git a/charts/plex/2.0.0/metadata.yaml b/charts/plex/2.0.1/metadata.yaml similarity index 100% rename from charts/plex/2.0.0/metadata.yaml rename to charts/plex/2.0.1/metadata.yaml diff --git a/charts/plex/2.0.0/migrations/migrate b/charts/plex/2.0.1/migrations/migrate similarity index 85% rename from charts/plex/2.0.0/migrations/migrate rename to charts/plex/2.0.1/migrations/migrate index 19956bffdb..80c8ee6612 100755 --- a/charts/plex/2.0.0/migrations/migrate +++ b/charts/plex/2.0.1/migrations/migrate @@ -49,15 +49,17 @@ def migrate_common_lib(values): 'plexID': { # We didn't have exposed this on UI the default # set by the container is 1000, so we will use that - 'user': 1000, - 'group': 1000, + # if the environmentVariables contains PLEX_UID/PLEX_GID use that + 'user': next((e['value'] for e in values.get('environmentVariables', []) if e['name'] == 'PLEX_UID'), 1000), + 'group': next((e['value'] for e in values.get('environmentVariables', []) if e['name'] == 'PLEX_GID'), 1000), }, # Migrate Config 'TZ': values['timezone'], 'plexConfig': { 'imageSelector': 'plexPassImage' if values['enablePlexPass'] else 'image', 'claimToken': values['claimToken'], - 'additionalEnvs': values.get('environmentVariables', []), + # Filter out the PLEX_UID and PLEX_GID + 'additionalEnvs': [e for e in values.get('environmentVariables', []) if e['name'] not in ['PLEX_UID', 'PLEX_GID'] ], }, 'plexGPU': values.get('gpuConfiguration', {}), # Migrate Storage diff --git a/charts/plex/2.0.0/questions.yaml b/charts/plex/2.0.1/questions.yaml similarity index 100% rename from charts/plex/2.0.0/questions.yaml rename to charts/plex/2.0.1/questions.yaml diff --git a/charts/plex/2.0.0/templates/NOTES.txt b/charts/plex/2.0.1/templates/NOTES.txt similarity index 100% rename from charts/plex/2.0.0/templates/NOTES.txt rename to charts/plex/2.0.1/templates/NOTES.txt diff --git a/charts/plex/2.0.0/templates/_migration.tpl b/charts/plex/2.0.1/templates/_migration.tpl similarity index 100% rename from charts/plex/2.0.0/templates/_migration.tpl rename to charts/plex/2.0.1/templates/_migration.tpl diff --git a/charts/plex/2.0.0/templates/_persistence.tpl b/charts/plex/2.0.1/templates/_persistence.tpl similarity index 100% rename from charts/plex/2.0.0/templates/_persistence.tpl rename to charts/plex/2.0.1/templates/_persistence.tpl diff --git a/charts/plex/2.0.0/templates/_plex.tpl b/charts/plex/2.0.1/templates/_plex.tpl similarity index 100% rename from charts/plex/2.0.0/templates/_plex.tpl rename to charts/plex/2.0.1/templates/_plex.tpl diff --git a/charts/plex/2.0.0/templates/_portal.tpl b/charts/plex/2.0.1/templates/_portal.tpl similarity index 100% rename from charts/plex/2.0.0/templates/_portal.tpl rename to charts/plex/2.0.1/templates/_portal.tpl diff --git a/charts/plex/2.0.0/templates/_service.tpl b/charts/plex/2.0.1/templates/_service.tpl similarity index 100% rename from charts/plex/2.0.0/templates/_service.tpl rename to charts/plex/2.0.1/templates/_service.tpl diff --git a/charts/plex/2.0.0/templates/common.yaml b/charts/plex/2.0.1/templates/common.yaml similarity index 100% rename from charts/plex/2.0.0/templates/common.yaml rename to charts/plex/2.0.1/templates/common.yaml diff --git a/charts/plex/2.0.0/to_keep_versions.md b/charts/plex/2.0.1/to_keep_versions.md similarity index 100% rename from charts/plex/2.0.0/to_keep_versions.md rename to charts/plex/2.0.1/to_keep_versions.md