[bitnami/nginx] Allow ingress extra paths to be set for host configuration (#3573)

* allow for extra paths to be set for alb annotations

* linting

* minor instead of patch version bump
This commit is contained in:
John Prisco
2020-09-01 04:22:28 -04:00
committed by GitHub
parent 974650557d
commit 4e3eefc450
4 changed files with 17 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v1
name: nginx
version: 6.1.0
version: 6.2.0
appVersion: 1.19.1
description: Chart for the nginx server
keywords:

View File

@@ -116,6 +116,7 @@ The following tables lists the configurable parameters of the NGINX Open Source
| `ingress.annotations` | Ingress annotations | `[]` |
| `ingress.hosts[0].name` | Hostname to your NGINX installation | `nginx.local` |
| `ingress.hosts[0].path` | Path within the url structure | `/` |
| `ingress.hosts[0].extraPaths` | Ingress extra paths to prepend to every host configuration. Useful when configuring [custom actions with AWS ALB Ingress Controller](https://kubernetes-sigs.github.io/aws-alb-ingress-controller/guide/ingress/annotation/#actions). | `[]` |
| `ingress.tls[0].hosts[0]` | TLS hosts | `nginx.local` |
| `ingress.tls[0].secretName` | TLS Secret (certificates) | `nginx.local-tls` |
| `ingress.secrets[0].name` | TLS Secret Name | `nil` |

View File

@@ -26,6 +26,12 @@ spec:
- host: {{ .name }}
http:
paths:
{{- range .extraPaths }}
- path: {{ .path }}
backend:
serviceName: {{ .backend.serviceName }}
servicePort: {{ .backend.servicePort }}
{{- end }}
- path: {{ default "/" .path }}
backend:
serviceName: "{{ template "nginx.fullname" $ }}"

View File

@@ -370,6 +370,15 @@ ingress:
- example.local
secretName: example.local-tls
hosts:
## Extra paths to prepend to every host configuration. This is useful when working with annotation based services.
extraPaths: []
# - path: /*
# backend:
# serviceName: ssl-redirect
# servicePort: use-annotation
healthIngress:
## Set to true to enable health ingress record generation