Skip to content

Commit

Permalink
Merge pull request #3 from cinaq/nginx-ingress-api-version
Browse files Browse the repository at this point in the history
Fix ingress version upgrade
  • Loading branch information
xiwenc authored Mar 4, 2022
2 parents 30a7a95 + 7082124 commit c6b82bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/app-mendix/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: app-mendix
version: 1.0.2
version: 1.0.3
description: Mendix Application Chart
icon: https://cinaq.github.io/helm-charts/icons/mendix-logo.png
maintainers:
Expand Down
14 changes: 10 additions & 4 deletions charts/app-mendix/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,24 @@ spec:
http:
paths:
- backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
service:
name: {{ $serviceName }}
port:
number: {{ $servicePort }}
path: /
pathType: Prefix
{{- if .Values.ingress.addHosts }}
{{- range .Values.ingress.hosts }}
- host: {{ . }}
http:
paths:
- backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
service:
name: {{ $serviceName }}
port:
number: {{ $servicePort }}
path: /
pathType: Prefix
{{- end }}
{{- end }}
{{- if .Values.ingress.tls.enabled }}
Expand Down

0 comments on commit c6b82bb

Please sign in to comment.