Allow chart user to add extra ingress paths

This supports adding paths to the oncall host so the ingress can be
configured to work with annotation-based ingress controllers (for
example, the ALB ingress controller).

By default no extra paths are added, and this change should be backwards
compatible.
This commit is contained in:
Jack Wink 2022-07-29 12:50:57 -07:00
parent 3f56b8ceac
commit 2be7bc7cb2
No known key found for this signature in database
GPG key ID: 4B7E8FC3F19DC391
2 changed files with 18 additions and 0 deletions

View file

@ -31,6 +31,9 @@ spec:
- host: {{ .Values.base_url | quote }}
http:
paths:
{{- if .Values.ingress.extraPaths }}
{{ toYaml .Values.ingress.extraPaths | indent 6}}
{{- end }}
- path: /
pathType: Prefix
backend:

View file

@ -58,6 +58,21 @@ ingress:
- hosts:
- "{{ .Values.base_url }}"
secretName: certificate-tls
# Extra paths to prepend to the host configuration. If using something
# like an ALB ingress controller, you may want to configure SSL redirects
extraPaths: []
# - path: /*
# backend:
# serviceName: ssl-redirect
# servicePort: use-annotation
## Or for k8s > 1.19
# - path: /*
# pathType: Prefix
# backend:
# service:
# name: ssl-redirect
# port:
# name: use-annotation
# Whether to install ingress controller
ingress-nginx: