[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:
Miguel Ángel Cabrera Miñagorri
2019-08-29 04:49:55 -07:00
committed by Kubernetes Prow Robot
parent 5dcda5dcd6
commit 838dc91c09
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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/
+4 -3
View File
@@ -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 }}
+1
View File
@@ -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