diff --git a/pretix/Chart.yaml b/pretix/Chart.yaml index d556310..0c8f7f6 100644 --- a/pretix/Chart.yaml +++ b/pretix/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: pretix description: Reinventing ticket presales, one ticket at a time. type: application -version: "0.1.9" +version: "0.1.10" # renovate: image=docker.io/pretix/standalone appVersion: "2025.1.0" keywords: diff --git a/pretix/README.md b/pretix/README.md index b1b8183..201b93d 100644 --- a/pretix/README.md +++ b/pretix/README.md @@ -7,7 +7,7 @@ description: "Reinventing ticket presales, one ticket at a time." # 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. @@ -87,13 +87,15 @@ helm uninstall pretix-release | env.PRETIX_REDIS_LOCATION | string | `"redis://:changeme@pretix-redis-master/0"` | | | env.PRETIX_REDIS_SESSIONS | bool | `true` | | | 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.enabled | bool | `false` | | | grafana.dashboards.labels.grafana_dashboard | string | `"1"` | | -| image.pullPolicy | string | `"IfNotPresent"` | | -| image.registry | string | `"docker.io"` | | -| image.repository | string | `"pretix/standalone"` | | -| image.tag | string | `""` | | +| 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 (could be overwritten by global.image.registry) | +| image.repository | string | `"pretix/standalone"` | image repository | +| image.tag | string | `""` | image tag - Overrides the image tag whose default is the chart appVersion. | | imagePullSecrets | list | `[]` | | | ingress.annotations | object | `{}` | | | ingress.className | string | `""` | | @@ -143,8 +145,8 @@ helm uninstall pretix-release | redis.global.storageClass | string | `""` | | | redis.master.persistence.enabled | bool | `true` | | | redis.replica.persistence.enabled | bool | `true` | | -| replicas.taskworker | int | `1` | | -| replicas.web | int | `1` | | +| replicas.taskworker | int | `1` | replicas of taskworker | +| replicas.web | int | `1` | replicas of web service | | resources | object | `{}` | | | securityContext | object | `{}` | | | 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) # 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. @@ -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_SESSIONS | bool | `true` | | | 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.enabled | bool | `false` | | | grafana.dashboards.labels.grafana_dashboard | string | `"1"` | | -| image.pullPolicy | string | `"IfNotPresent"` | | -| image.registry | string | `"docker.io"` | | -| image.repository | string | `"pretix/standalone"` | | -| image.tag | string | `""` | | +| 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 (could be overwritten by global.image.registry) | +| image.repository | string | `"pretix/standalone"` | image repository | +| image.tag | string | `""` | image tag - Overrides the image tag whose default is the chart appVersion. | | imagePullSecrets | list | `[]` | | | ingress.annotations | object | `{}` | | | ingress.className | string | `""` | | @@ -274,8 +278,8 @@ Reinventing ticket presales, one ticket at a time. | redis.global.storageClass | string | `""` | | | redis.master.persistence.enabled | bool | `true` | | | redis.replica.persistence.enabled | bool | `true` | | -| replicas.taskworker | int | `1` | | -| replicas.web | int | `1` | | +| replicas.taskworker | int | `1` | replicas of taskworker | +| replicas.web | int | `1` | replicas of web service | | resources | object | `{}` | | | securityContext | object | `{}` | | | service.port | int | `80` | | diff --git a/pretix/templates/deployment.yaml b/pretix/templates/deployment.yaml index 20dc63d..9987805 100644 --- a/pretix/templates/deployment.yaml +++ b/pretix/templates/deployment.yaml @@ -41,8 +41,8 @@ spec: securityContext: {{- toYaml $.Values.securityContext | nindent 12 }} {{- with $.Values.image }} - image: "{{ .registry }}/{{ .repository }}:{{ .tag | default $.Chart.AppVersion }}" - imagePullPolicy: {{ .pullPolicy }} + image: "{{ coalesce $.Values.global.image.registry .registry }}/{{ .repository }}:{{ .tag | default $.Chart.AppVersion }}" + imagePullPolicy: {{ coalesce $.Values.global.image.pullPolicy .pullPolicy }} {{- end }} env: # Migrations are handled by helm hooks in pretix-migrate.yaml diff --git a/pretix/values.yaml b/pretix/values.yaml index f839a79..6ddedf8 100644 --- a/pretix/values.yaml +++ b/pretix/values.yaml @@ -1,19 +1,25 @@ -# Default values for pretix. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. +global: + image: + # -- 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 of web service web: 1 + # -- replicas of taskworker taskworker: 1 # This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ image: + # -- image registry (could be overwritten by global.image.registry) registry: docker.io + # -- image repository 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 - # Overrides the image tag whose default is the chart appVersion. + # -- image tag - Overrides the image tag whose default is the chart appVersion. tag: "" cronSchedule: "*/30 * * * *"