[bitnami/nginx] bugfix: allow extraVolumes when used in sidecars (#35167)

* [bitnami/nginx] bugfix: allow extraVolumes when used in sidecars

Signed-off-by: EricHo <ericho@hket.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: EricHo <ericho@hket.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Miguel Ruiz <miguel.ruiz@broadcom.com>
This commit is contained in:
ericho111
2025-08-01 22:42:19 +08:00
committed by GitHub
parent b181a078af
commit 3641f15d6d
3 changed files with 8 additions and 4 deletions

View File

@@ -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)
## <small>21.0.9 (2025-07-31)</small>

View File

@@ -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

View File

@@ -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 -}}