Skip to content

Commit 096725e

Browse files
pascalfreundsrfPascal Freund
andauthored
[nginx] Fix/nginx used ingress backend port (CloudPirates-io#190)
* Use first port in array for ingress * Bump chart version --------- Co-authored-by: Pascal Freund <[email protected]>
1 parent 819492c commit 096725e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

charts/nginx/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: nginx
33
description: Nginx is a high-performance HTTP server and reverse proxy.
44
type: application
5-
version: 0.1.9
5+
version: 0.1.10
66
appVersion: "1.29.1"
77
keywords:
88
- nginx

charts/nginx/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ containerPorts:
210210
| Parameter | Description | Default |
211211
| ---------------- | ---------------------------------------------------------- | ----------- |
212212
| `service.type` | Nginx service type | `ClusterIP` |
213-
| `service.port` | Nginx service port | `80` |
214213
| `service.ports` | Array of service ports (advanced configuration) - see examples | `[]` |
215214

216215
#### Service Ports Examples

charts/nginx/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "nginx.fullname" . -}}
3-
{{- $svcPort := .Values.service.port -}}
3+
{{- $svcPort := (index .Values.service.ports 0).port }}
44
{{- if and .Values.ingress.className (not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class")) }}
55
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
66
{{- end }}
@@ -57,4 +57,4 @@ spec:
5757
{{- end }}
5858
{{- end }}
5959
{{- end }}
60-
{{- end }}
60+
{{- end }}

0 commit comments

Comments
 (0)