mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/odoo] Fix Odoo ingress to support multiple paths (#16645)
* Fix Odoo ingress to support multiple paths Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com> * Adapt TLS on the odoo ingress Signed-off-by: Miguel A. Cabrera Minagorri <macabrera@bitnami.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
5dcda5dcd6
commit
838dc91c09
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: odoo
|
||||
version: 10.1.2
|
||||
version: 10.1.3
|
||||
appVersion: 12.0.20190815
|
||||
description: A suite of web based open source business apps.
|
||||
home: https://www.odoo.com/
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{{- if .Values.ingress.enabled }}
|
||||
{{- range .Values.ingress.hosts }}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
@@ -18,6 +17,7 @@ metadata:
|
||||
{{- end }}
|
||||
spec:
|
||||
rules:
|
||||
{{- range .Values.ingress.hosts }}
|
||||
- host: {{ .name }}
|
||||
http:
|
||||
paths:
|
||||
@@ -25,12 +25,13 @@ spec:
|
||||
backend:
|
||||
serviceName: {{ template "odoo.fullname" $ }}
|
||||
servicePort: http
|
||||
{{- if .tls }}
|
||||
{{- end }}
|
||||
tls:
|
||||
- hosts:
|
||||
{{ range .Values.ingress.hosts }}
|
||||
{{- if .tls }}
|
||||
- {{ .name }}
|
||||
secretName: {{ .tlsSecret }}
|
||||
{{- end }}
|
||||
---
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -144,6 +144,7 @@ ingress:
|
||||
## Most likely this will be just one host, but in the event more hosts are needed, this is an array
|
||||
hosts:
|
||||
- name: odoo.local
|
||||
path: /
|
||||
|
||||
## Set this to true in order to enable TLS on the ingress record
|
||||
## A side effect of this will be that the backend odoo service will be connected at port 443
|
||||
|
||||
Reference in New Issue
Block a user