[bitnami/nginx] bugfix: Change HTTP and HTTPS ports when containerPorts are configured (#12014)

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>

Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
Miguel Ruiz
2022-08-31 12:56:29 +02:00
committed by GitHub
parent 71a6fbba8a
commit 4c9244fd3f
2 changed files with 7 additions and 1 deletions

View File

@@ -25,4 +25,4 @@ name: nginx
sources:
- https://github.com/bitnami/containers/tree/main/bitnami/nginx
- https://www.nginx.org
version: 13.2.2
version: 13.2.3

View File

@@ -164,6 +164,12 @@ spec:
env:
- name: BITNAMI_DEBUG
value: {{ ternary "true" "false" .Values.image.debug | quote }}
- name: NGINX_HTTP_PORT_NUMBER
value: {{ .Values.containerPorts.http | quote }}
{{- if .Values.containerPorts.https }}
- name: NGINX_HTTPS_PORT_NUMBER
value: {{ .Values.containerPorts.https | quote }}
{{- end }}
{{- if .Values.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
{{- end }}