element-web: Simplify ingress config

This commit is contained in:
Alexander Olofsson 2020-08-12 11:05:32 +02:00
parent cadeba23a6
commit b370ab03fb
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
3 changed files with 5 additions and 7 deletions

View file

@ -10,7 +10,8 @@ icon: https://element.io/images/element-logo.svg
appVersion: 1.7.3 appVersion: 1.7.3
type: application type: application
version: 0.1.0 version: 0.1.1
maintainers: maintainers:
- name: Alexander Olofsson - name: Alexander Olofsson
email: ace@haxalot.com email: ace@haxalot.com

View file

@ -28,14 +28,12 @@ spec:
{{- end }} {{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ .host | quote }} - host: {{ . | quote }}
http: http:
paths: paths:
{{- range .paths }} - path: /
- path: {{ . }}
backend: backend:
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: {{ $svcPort }} servicePort: {{ $svcPort }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View file

@ -56,8 +56,7 @@ ingress:
# kubernetes.io/ingress.class: nginx # kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true" # kubernetes.io/tls-acme: "true"
hosts: hosts:
- host: chart-example.local - chart-example.local
paths: []
tls: [] tls: []
# - secretName: chart-example-tls # - secretName: chart-example-tls
# hosts: # hosts: