feature(kibana): allow path element in ingress values (#9028)

* feature(kibana): allow path element in ingress values

Signed-off-by: Adam Heinz <adam.heinz@fireeye.com>

* Add tests for ingress hosts with and without paths.

Signed-off-by: Adam Heinz <adam.heinz@fireeye.com>
This commit is contained in:
aheinz-fe
2018-11-21 05:41:22 -08:00
committed by k8s-ci-robot
parent d15d9c5531
commit 5f9580805d
5 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: kibana
version: 0.19.0
version: 0.20.0
appVersion: 6.5.0
description: Kibana is an open source data visualization plugin for Elasticsearch
icon: https://raw.githubusercontent.com/elastic/kibana/master/src/ui/public/icons/kibana-color.svg
@@ -0,0 +1,3 @@
ingress:
hosts:
- localhost.localdomain/kibana
+3
View File
@@ -0,0 +1,3 @@
ingress:
hosts:
- kibana.localhost.localdomain
+4 -3
View File
@@ -16,11 +16,12 @@ metadata:
{{- end }}
spec:
rules:
{{- range $host := .Values.ingress.hosts }}
- host: {{ $host }}
{{- range .Values.ingress.hosts }}
{{- $url := splitList "/" . }}
- host: {{ first $url }}
http:
paths:
- path: /
- path: /{{ rest $url | join "/" }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
+2 -1
View File
@@ -56,7 +56,8 @@ service:
ingress:
enabled: false
# hosts:
# - chart-example.local
# - kibana.localhost.localdomain
# - localhost.localdomain/kibana
# annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"