From 064c008a21aefac380261c9c5cde6b7d64982e48 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 23 Aug 2024 19:15:11 +0300 Subject: [PATCH] fix(nextcloud): fix nil reference (#25447) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [x] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- charts/premium/nextcloud/Chart.yaml | 2 +- charts/premium/nextcloud/ci/basic-values.yaml | 4 +--- charts/premium/nextcloud/templates/_ingressInjector.tpl | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/charts/premium/nextcloud/Chart.yaml b/charts/premium/nextcloud/Chart.yaml index f1a0b5f05f8..682a0368778 100644 --- a/charts/premium/nextcloud/Chart.yaml +++ b/charts/premium/nextcloud/Chart.yaml @@ -49,4 +49,4 @@ sources: - https://hub.docker.com/r/collabora/code - https://hub.docker.com/r/nginxinc/nginx-unprivileged type: application -version: 31.4.13 +version: 31.4.14 diff --git a/charts/premium/nextcloud/ci/basic-values.yaml b/charts/premium/nextcloud/ci/basic-values.yaml index 5acbfd7584a..0c8d042f173 100644 --- a/charts/premium/nextcloud/ci/basic-values.yaml +++ b/charts/premium/nextcloud/ci/basic-values.yaml @@ -11,6 +11,4 @@ ingress: enabled: true hosts: - host: nextcloud.example.com - paths: - - path: / - pathType: Prefix + diff --git a/charts/premium/nextcloud/templates/_ingressInjector.tpl b/charts/premium/nextcloud/templates/_ingressInjector.tpl index f99f5bd5047..7ea19631f94 100644 --- a/charts/premium/nextcloud/templates/_ingressInjector.tpl +++ b/charts/premium/nextcloud/templates/_ingressInjector.tpl @@ -7,7 +7,7 @@ {{/* Append more paths here if needed */}} {{- range $host := .Values.ingress.main.hosts -}} - {{- $paths := $host.paths -}} + {{- $paths := $host.paths | default list -}} {{- $paths = concat $paths $injectPaths -}} {{- $_ := set $host "paths" $paths -}} {{- end -}}