From 3641f15d6d20339556bba79f45af6e5f83381931 Mon Sep 17 00:00:00 2001 From: ericho111 Date: Fri, 1 Aug 2025 22:42:19 +0800 Subject: [PATCH] [bitnami/nginx] bugfix: allow extraVolumes when used in sidecars (#35167) * [bitnami/nginx] bugfix: allow extraVolumes when used in sidecars Signed-off-by: EricHo * Update CHANGELOG.md Signed-off-by: Bitnami Bot * Update CHANGELOG.md Signed-off-by: Bitnami Bot --------- Signed-off-by: EricHo Signed-off-by: Bitnami Bot Signed-off-by: Miguel Ruiz Co-authored-by: Bitnami Bot Co-authored-by: Miguel Ruiz --- bitnami/nginx/CHANGELOG.md | 6 +++++- bitnami/nginx/Chart.yaml | 2 +- bitnami/nginx/templates/_helpers.tpl | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bitnami/nginx/CHANGELOG.md b/bitnami/nginx/CHANGELOG.md index 3b5e6f9be9..dcdfa02e8e 100644 --- a/bitnami/nginx/CHANGELOG.md +++ b/bitnami/nginx/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog +## 21.1.1 (2025-08-01) + +* [bitnami/nginx] bugfix: allow extraVolumes when used in sidecars ([#35167](https://github.com/bitnami/charts/pull/35167)) + ## 21.1.0 (2025-07-31) -* [bitnami/nginx] Add support for context-based configuration includes ([#35347](https://github.com/bitnami/charts/pull/35347)) +* [bitnami/nginx] Add support for context-based configuration includes (#35347) ([507f56e](https://github.com/bitnami/charts/commit/507f56ef31172eb85223fb8ae20a1865761030c0)), closes [#35347](https://github.com/bitnami/charts/issues/35347) ## 21.0.9 (2025-07-31) diff --git a/bitnami/nginx/Chart.yaml b/bitnami/nginx/Chart.yaml index 1cff8e33ad..ec21037cba 100644 --- a/bitnami/nginx/Chart.yaml +++ b/bitnami/nginx/Chart.yaml @@ -37,4 +37,4 @@ maintainers: name: nginx sources: - https://github.com/bitnami/charts/tree/main/bitnami/nginx -version: 21.1.0 +version: 21.1.1 diff --git a/bitnami/nginx/templates/_helpers.tpl b/bitnami/nginx/templates/_helpers.tpl index 4900d9cfd1..265bb59632 100644 --- a/bitnami/nginx/templates/_helpers.tpl +++ b/bitnami/nginx/templates/_helpers.tpl @@ -104,10 +104,10 @@ nginx: cloneStaticSiteFromGit {{/* Validate values of NGINX - Incorrect extra volume settings */}} {{- define "nginx.validateValues.extraVolumes" -}} -{{- if and (.Values.extraVolumes) (not (or .Values.extraVolumeMounts .Values.cloneStaticSiteFromGit.extraVolumeMounts)) -}} +{{- if and (.Values.extraVolumes) (not (or .Values.extraVolumeMounts .Values.cloneStaticSiteFromGit.extraVolumeMounts .Values.sidecars)) -}} nginx: missing-extra-volume-mounts You specified extra volumes but not mount points for them. Please set - the extraVolumeMounts value + the extraVolumeMounts value or use them in sidecars {{- end -}} {{- end -}}