Commit f39869aa authored by Thong Kuah's avatar Thong Kuah
Browse files

Revert "Merge branch 'fix/allow-hosts-starting-with-wildcard' into 'master'"

This reverts merge request !97
parent 2dc81bf6
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -34,18 +34,18 @@ spec:
  tls:
  - hosts:
{{- if .Values.service.commonName }}
    - {{ template "hostname" .Values.service.commonName | quote }}
    - {{ template "hostname" .Values.service.commonName }}
{{- end }}
    - {{ template "hostname" .Values.service.url | quote }}
    - {{ template "hostname" .Values.service.url }}
{{- if .Values.service.additionalHosts }}
{{- range $host := .Values.service.additionalHosts }}
    - {{ $host | quote }}
    - {{ $host }}
{{- end -}}
{{- end }}
    secretName: {{ .Values.ingress.tls.secretName | default (printf "%s-tls" (include "fullname" .)) }}
{{- end }}
  rules:
  - host: {{ template "hostname" .Values.service.url | quote }}
  - host: {{ template "hostname" .Values.service.url }}
    http:
      &httpRule
      paths:
@@ -54,13 +54,13 @@ spec:
          serviceName: {{ template "fullname" . }}
          servicePort: {{ .Values.service.externalPort }}
{{- if .Values.service.commonName }}
  - host: {{ template "hostname" .Values.service.commonName | quote }}
  - host: {{ template "hostname" .Values.service.commonName }}
    http:
      <<: *httpRule
{{- end -}}
{{- if .Values.service.additionalHosts }}
{{- range $host := .Values.service.additionalHosts }}
  - host: {{ $host | quote }}
  - host: {{ $host }}
    http:
      <<: *httpRule
{{- end -}}