fix(pretix): add global (and improve docs)

This commit is contained in:
WrenIX 2025-02-27 10:55:45 +01:00
parent 0ab3d22506
commit e7fa2e477a
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
4 changed files with 33 additions and 23 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
name: pretix name: pretix
description: Reinventing ticket presales, one ticket at a time. description: Reinventing ticket presales, one ticket at a time.
type: application type: application
version: "0.1.9" version: "0.1.10"
# renovate: image=docker.io/pretix/standalone # renovate: image=docker.io/pretix/standalone
appVersion: "2025.1.0" appVersion: "2025.1.0"
keywords: keywords:

View file

@ -7,7 +7,7 @@ description: "Reinventing ticket presales, one ticket at a time."
# pretix # pretix
![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2025.1.0](https://img.shields.io/badge/AppVersion-2025.1.0-informational?style=flat-square) ![Version: 0.1.10](https://img.shields.io/badge/Version-0.1.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2025.1.0](https://img.shields.io/badge/AppVersion-2025.1.0-informational?style=flat-square)
Reinventing ticket presales, one ticket at a time. Reinventing ticket presales, one ticket at a time.
@ -87,13 +87,15 @@ helm uninstall pretix-release
| env.PRETIX_REDIS_LOCATION | string | `"redis://:changeme@pretix-redis-master/0"` | | | env.PRETIX_REDIS_LOCATION | string | `"redis://:changeme@pretix-redis-master/0"` | |
| env.PRETIX_REDIS_SESSIONS | bool | `true` | | | env.PRETIX_REDIS_SESSIONS | bool | `true` | |
| fullnameOverride | string | `""` | | | fullnameOverride | string | `""` | |
| global.image.pullPolicy | string | `nil` | if set it will overwrite all pullPolicy |
| global.image.registry | string | `nil` | if set it will overwrite all registry entries |
| grafana.dashboards.annotations | object | `{}` | | | grafana.dashboards.annotations | object | `{}` | |
| grafana.dashboards.enabled | bool | `false` | | | grafana.dashboards.enabled | bool | `false` | |
| grafana.dashboards.labels.grafana_dashboard | string | `"1"` | | | grafana.dashboards.labels.grafana_dashboard | string | `"1"` | |
| image.pullPolicy | string | `"IfNotPresent"` | | | image.pullPolicy | string | `"IfNotPresent"` | This sets the pull policy for images. (could be overwritten by global.image.pullPolicy) |
| image.registry | string | `"docker.io"` | | | image.registry | string | `"docker.io"` | image registry (could be overwritten by global.image.registry) |
| image.repository | string | `"pretix/standalone"` | | | image.repository | string | `"pretix/standalone"` | image repository |
| image.tag | string | `""` | | | image.tag | string | `""` | image tag - Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | | | imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | | | ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | | | ingress.className | string | `""` | |
@ -143,8 +145,8 @@ helm uninstall pretix-release
| redis.global.storageClass | string | `""` | | | redis.global.storageClass | string | `""` | |
| redis.master.persistence.enabled | bool | `true` | | | redis.master.persistence.enabled | bool | `true` | |
| redis.replica.persistence.enabled | bool | `true` | | | redis.replica.persistence.enabled | bool | `true` | |
| replicas.taskworker | int | `1` | | | replicas.taskworker | int | `1` | replicas of taskworker |
| replicas.web | int | `1` | | | replicas.web | int | `1` | replicas of web service |
| resources | object | `{}` | | | resources | object | `{}` | |
| securityContext | object | `{}` | | | securityContext | object | `{}` | |
| service.port | int | `80` | | | service.port | int | `80` | |
@ -160,7 +162,7 @@ helm uninstall pretix-release
Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs) Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs)
# pretix # pretix
![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2025.1.0](https://img.shields.io/badge/AppVersion-2025.1.0-informational?style=flat-square) ![Version: 0.1.10](https://img.shields.io/badge/Version-0.1.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2025.1.0](https://img.shields.io/badge/AppVersion-2025.1.0-informational?style=flat-square)
Reinventing ticket presales, one ticket at a time. Reinventing ticket presales, one ticket at a time.
@ -218,13 +220,15 @@ Reinventing ticket presales, one ticket at a time.
| env.PRETIX_REDIS_LOCATION | string | `"redis://:changeme@pretix-redis-master/0"` | | | env.PRETIX_REDIS_LOCATION | string | `"redis://:changeme@pretix-redis-master/0"` | |
| env.PRETIX_REDIS_SESSIONS | bool | `true` | | | env.PRETIX_REDIS_SESSIONS | bool | `true` | |
| fullnameOverride | string | `""` | | | fullnameOverride | string | `""` | |
| global.image.pullPolicy | string | `nil` | if set it will overwrite all pullPolicy |
| global.image.registry | string | `nil` | if set it will overwrite all registry entries |
| grafana.dashboards.annotations | object | `{}` | | | grafana.dashboards.annotations | object | `{}` | |
| grafana.dashboards.enabled | bool | `false` | | | grafana.dashboards.enabled | bool | `false` | |
| grafana.dashboards.labels.grafana_dashboard | string | `"1"` | | | grafana.dashboards.labels.grafana_dashboard | string | `"1"` | |
| image.pullPolicy | string | `"IfNotPresent"` | | | image.pullPolicy | string | `"IfNotPresent"` | This sets the pull policy for images. (could be overwritten by global.image.pullPolicy) |
| image.registry | string | `"docker.io"` | | | image.registry | string | `"docker.io"` | image registry (could be overwritten by global.image.registry) |
| image.repository | string | `"pretix/standalone"` | | | image.repository | string | `"pretix/standalone"` | image repository |
| image.tag | string | `""` | | | image.tag | string | `""` | image tag - Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | | | imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | | | ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | | | ingress.className | string | `""` | |
@ -274,8 +278,8 @@ Reinventing ticket presales, one ticket at a time.
| redis.global.storageClass | string | `""` | | | redis.global.storageClass | string | `""` | |
| redis.master.persistence.enabled | bool | `true` | | | redis.master.persistence.enabled | bool | `true` | |
| redis.replica.persistence.enabled | bool | `true` | | | redis.replica.persistence.enabled | bool | `true` | |
| replicas.taskworker | int | `1` | | | replicas.taskworker | int | `1` | replicas of taskworker |
| replicas.web | int | `1` | | | replicas.web | int | `1` | replicas of web service |
| resources | object | `{}` | | | resources | object | `{}` | |
| securityContext | object | `{}` | | | securityContext | object | `{}` | |
| service.port | int | `80` | | | service.port | int | `80` | |

View file

@ -41,8 +41,8 @@ spec:
securityContext: securityContext:
{{- toYaml $.Values.securityContext | nindent 12 }} {{- toYaml $.Values.securityContext | nindent 12 }}
{{- with $.Values.image }} {{- with $.Values.image }}
image: "{{ .registry }}/{{ .repository }}:{{ .tag | default $.Chart.AppVersion }}" image: "{{ coalesce $.Values.global.image.registry .registry }}/{{ .repository }}:{{ .tag | default $.Chart.AppVersion }}"
imagePullPolicy: {{ .pullPolicy }} imagePullPolicy: {{ coalesce $.Values.global.image.pullPolicy .pullPolicy }}
{{- end }} {{- end }}
env: env:
# Migrations are handled by helm hooks in pretix-migrate.yaml # Migrations are handled by helm hooks in pretix-migrate.yaml

View file

@ -1,19 +1,25 @@
# Default values for pretix. global:
# This is a YAML-formatted file. image:
# Declare variables to be passed into your templates. # -- if set it will overwrite all registry entries
registry:
# -- if set it will overwrite all pullPolicy
pullPolicy:
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
replicas: replicas:
# -- replicas of web service
web: 1 web: 1
# -- replicas of taskworker
taskworker: 1 taskworker: 1
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ # This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image: image:
# -- image registry (could be overwritten by global.image.registry)
registry: docker.io registry: docker.io
# -- image repository
repository: pretix/standalone repository: pretix/standalone
# This sets the pull policy for images. # -- This sets the pull policy for images. (could be overwritten by global.image.pullPolicy)
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # -- image tag - Overrides the image tag whose default is the chart appVersion.
tag: "" tag: ""
cronSchedule: "*/30 * * * *" cronSchedule: "*/30 * * * *"