Skip to content

Commit

Permalink
[stable/consul] updated templating for ingress host (helm#21207)
Browse files Browse the repository at this point in the history
Signed-off-by: Yatharth Sharma <yatharth0045@gmail.com>
  • Loading branch information
Yatharth0045 authored and Ian Levesque committed Jul 13, 2020
1 parent edd6a55 commit 51ce159
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/consul/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions stable/consul/templates/consul-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{{- $releaseName := .Release.Name -}}
{{- $servicePort := .Values.HttpPort -}}
{{- $serviceName := include "consul.fullname" . -}}
{{- $serviceHost := .Values.uiIngress.path }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
Expand All @@ -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 }}
Expand Down

0 comments on commit 51ce159

Please sign in to comment.