[stable/consul] updated templating for ingress host (#21207)

Signed-off-by: Yatharth Sharma <yatharth0045@gmail.com>
This commit is contained in:
Yatharth Sharma
2020-03-03 03:25:37 -08:00
committed by GitHub
parent 9e19e65f7f
commit dc813111d1
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: consul
home: https://github.com/hashicorp/consul
version: 3.9.4
version: 3.9.5
appVersion: 1.5.3
description: Highly available and distributed service discovery and key-value store
designed with support for the modern data center to make distributed systems and
+3 -2
View File
@@ -2,6 +2,7 @@
{{- $releaseName := .Release.Name -}}
{{- $servicePort := .Values.HttpPort -}}
{{- $serviceName := include "consul.fullname" . -}}
{{- $serviceHost := .Values.uiIngress.path }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
@@ -27,8 +28,8 @@ spec:
- backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- if .Values.uiIngress.path }}
path: {{ .Values.uiIngresspath }}
{{- if $serviceHost }}
path: {{ $serviceHost }}
{{- end }}
{{- end -}}
{{- if .Values.uiIngress.tls }}