From 04ef9ff7964f8ca705a5dc43812a29a4b6ce95d7 Mon Sep 17 00:00:00 2001 From: astro-stan <36302090+astro-stan@users.noreply.github.com> Date: Fri, 3 Apr 2026 17:42:44 +0100 Subject: [PATCH] fix(nextcloud): Reduce nextcloud wait-nextcloud requests and limits (#46703) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # Similar to #46616, the Nextcloud 'wait-nextcloud' init container has no resource requests or limits section specified and thus inherits the defaults from common. These are needlessly large for what the container is - a bash script. This PR adds more conservative limits - matched to the limits specified for the cnpg-wait init container in common. **⚙️ 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 - [ ] 📜 Documentation Changes **🧪 How Has This Been Tested?** CI. Also rendered the chart with `helm template` **📃 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 changes to the documentation - [ ] 🧪 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):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ 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/stable/nextcloud/Chart.yaml | 3 +-- charts/stable/nextcloud/templates/_waitNextcloud.tpl | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/stable/nextcloud/Chart.yaml b/charts/stable/nextcloud/Chart.yaml index 0ad12bf1611..da15cd0dc1a 100644 --- a/charts/stable/nextcloud/Chart.yaml +++ b/charts/stable/nextcloud/Chart.yaml @@ -52,5 +52,4 @@ sources: - https://hub.docker.com/r/clamav/clamav - https://hub.docker.com/r/collabora/code type: application -version: 43.0.9 - +version: 43.0.10 diff --git a/charts/stable/nextcloud/templates/_waitNextcloud.tpl b/charts/stable/nextcloud/templates/_waitNextcloud.tpl index adcd8f0dea4..62cbbfd23e3 100644 --- a/charts/stable/nextcloud/templates/_waitNextcloud.tpl +++ b/charts/stable/nextcloud/templates/_waitNextcloud.tpl @@ -6,6 +6,12 @@ type: init imageSelector: image resources: excludeExtra: true + limits: + cpu: 500m + memory: 512Mi + requests: + cpu: 10m + memory: 50Mi securityContext: command: /bin/sh args: