diff options
author | Ondřej Šmalec <o.smalec@partner.samsung.com> | 2019-08-29 13:02:25 +0200 |
---|---|---|
committer | Ondřej Šmalec <o.smalec@partner.samsung.com> | 2019-08-29 13:06:49 +0200 |
commit | dcd1bf0839fced57283de739933c79f4e5cdac95 (patch) | |
tree | 0ee436618f678e6a885fc7ef2ae506988d38f633 | |
parent | 424278d0f109f5515393d83ea03162b073773e55 (diff) |
Fix syntax and indentation in ingress common template.
Issue-ID: OOM-2050
Signed-off-by: Ondřej Šmalec <o.smalec@partner.samsung.com>
Change-Id: I7d54c4c8adc192d0c27249dde2fad4af2ed0a52a
-rw-r--r-- | kubernetes/common/common/templates/_ingress.tpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kubernetes/common/common/templates/_ingress.tpl b/kubernetes/common/common/templates/_ingress.tpl index 9b274ad190..49d7eeb415 100644 --- a/kubernetes/common/common/templates/_ingress.tpl +++ b/kubernetes/common/common/templates/_ingress.tpl @@ -6,12 +6,12 @@ backend: serviceName: {{ .name }} servicePort: {{ .port }} -{{- end }} +{{- end -}} {{- else -}} - - path: {{ printf "/%s" .Chart.Name }} - backend: - serviceName: {{ .Chart.Name }} - servicePort: {{ .Values.service.externalPort }} + - path: {{ printf "/%s" .Chart.Name }} + backend: + serviceName: {{ .Chart.Name }} + servicePort: {{ .Values.service.externalPort }} {{- end -}} {{- end -}} {{- end -}} @@ -44,7 +44,7 @@ spec: rules: - http: paths: - {{- include "ingress.config.port" . }} + {{- include "ingress.config.port" . }} {{- if .Values.ingress.tls }} tls: {{ toYaml .Values.ingress.tls | indent 4 }} |