Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update mapfish print ingress #98

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/mapfish-print/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: mapfish-print
description: Helm chart for MapFish Print v3
version: 2.0.3
appVersion: 3.30.5
version: 3.0.0
appVersion: 3.30.11
37 changes: 20 additions & 17 deletions charts/mapfish-print/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,43 @@
{{- if .Values.ingress.enabled -}}
---
{{ $fullName := include "mapfish-print.fullname" . }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
name: {{ include "mapfish-print.fullname" . }}
labels:
{{ include "mapfish-print.labels" . | indent 4 }}
{{- include "mapfish-print.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: ImplementationSpecific
{{- range .paths }}
- path: {{ .path }}
{{- with .pathType }}
pathType: {{ . }}
{{- end }}
backend:
service:
name: {{ $fullName }}
name: {{ include "mapfish-print.fullname" $ }}
port:
name: http
{{- end }}
{{- end }}
number: {{ $.Values.service.port }}
{{- end }}
{{- end }}
{{- end }}
6 changes: 4 additions & 2 deletions charts/mapfish-print/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ service:

ingress:
enabled: false
className: "nginx"
annotations:
spec.ingressClassName: nginx
# kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-XSRF-TOKEN"
hosts:
- host: mapfish-print.example.com
paths: [ "/" ]
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: mapfish-print-secret
hosts:
Expand Down
Loading