Skip to content

Commit 5cc8135

Browse files
committed
Add ingress class name, app version, and fix templating length
1 parent 14cfdeb commit 5cc8135

9 files changed

+15
-9
lines changed

pretix-helm/Chart.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: pretix
22
description: Reinventing ticket presales, one ticket at a time.
33
type: application
44
version: 2024.3.0
5+
appVersion: 2024.3.0
56
apiVersion: v2
67
keywords:
78
- event-tickets

pretix-helm/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ More options can be overridden from the Redis chart here.
138138
|------------------------------------|-------------------------------------------------------------------------------|------------------------|
139139
| ingress.enabled | If the ingress is enabled | false |
140140
| ingress.annotations | Annotations to be added to the ingress | {} |
141+
| ingress.ingressClassName | Class name to use for the ingress | "" |
141142
| ingress.hosts[0].host | The host name to be used for the ingress, make sure it matches the Pretix env | pretix.example.com |
142143
| ingress.hosts[0].paths[0].path | The path under the host | / |
143144
| ingress.hosts[0].paths[0].pathType | The pathType of the path under the host | ImplementationSpecific |

pretix-helm/templates/pretix-cron.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: batch/v1
22
kind: CronJob
33
metadata:
4-
name: {{ include "pretix.fullname" . }}-cron
4+
name: {{ include "pretix.fullname" . | trunc 58 }}-cron
55
labels:
66
{{- include "pretix.labels" . | nindent 4 }}
77
spec:
@@ -14,7 +14,7 @@ spec:
1414
volumes:
1515
- name: pretix-data
1616
persistentVolumeClaim:
17-
claimName: {{ include "pretix.fullname" . }}-data
17+
claimName: {{ include "pretix.fullname" . | trunc 58 }}-data
1818
containers:
1919
- name: pretix-cron
2020
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}

pretix-helm/templates/pretix-data-pvc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: PersistentVolumeClaim
33
metadata:
4-
name: {{ include "pretix.fullname" . }}-data
4+
name: {{ include "pretix.fullname" . | trunc 58 }}-data
55
spec:
66
accessModes:
77
- {{ .Values.persistence.accessMode }}

pretix-helm/templates/ingress.yaml pretix-helm/templates/pretix-ingress.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ metadata:
1111
{{- toYaml . | nindent 4 }}
1212
{{- end }}
1313
spec:
14+
{{- with .Values.ingress.ingressClassName }}
15+
ingressClassName: {{ . }}
16+
{{- end }}
1417
{{- if .Values.ingress.tls }}
1518
tls:
1619
{{- range .Values.ingress.tls }}

pretix-helm/templates/pretix-migrate.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: batch/v1
22
kind: Job
33
metadata:
4-
name: {{ include "pretix.fullname" . }}-migrate
4+
name: {{ include "pretix.fullname" . | trunc 55 }}-migrate
55
labels:
66
{{- include "pretix.labels" . | nindent 4 }}
77
annotations:
@@ -15,7 +15,7 @@ spec:
1515
volumes:
1616
- name: pretix-data
1717
persistentVolumeClaim:
18-
claimName: {{ include "pretix.fullname" . }}-data
18+
claimName: {{ include "pretix.fullname" . | trunc 58 }}-data
1919
containers:
2020
- name: pretix-migrate
2121
image: {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}

pretix-helm/templates/pretix-web-deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: {{ include "pretix.fullname" . }}-web
4+
name: {{ include "pretix.fullname" . | trunc 59 }}-web
55
labels:
66
app: {{ include "pretix.fullname" . }}
77
service: web
@@ -51,4 +51,4 @@ spec:
5151
volumes:
5252
- name: pretix-data
5353
persistentVolumeClaim:
54-
claimName: {{ include "pretix.fullname" . }}-data
54+
claimName: {{ include "pretix.fullname" . | trunc 58 }}-data

pretix-helm/templates/pretix-worker-deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: apps/v1
22
kind: Deployment
33
metadata:
4-
name: {{ include "pretix.fullname" . }}-worker
4+
name: {{ include "pretix.fullname" . | trunc 56 }}-worker
55
labels:
66
app: {{ include "pretix.fullname" . }}
77
service: worker
@@ -51,4 +51,4 @@ spec:
5151
volumes:
5252
- name: pretix-data
5353
persistentVolumeClaim:
54-
claimName: {{ include "pretix.fullname" . }}-data
54+
claimName: {{ include "pretix.fullname" . | trunc 58 }}-data

pretix-helm/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ redis:
7070
ingress:
7171
enabled: false
7272
annotations: {}
73+
ingressClassName: ""
7374
hosts:
7475
- host: pretix.example.com
7576
paths:

0 commit comments

Comments
 (0)