From cfc5f67b567166272964ef3b26f1adc54b54ae0f Mon Sep 17 00:00:00 2001 From: Yamila Moreno Date: Thu, 12 Dec 2024 13:31:18 +0100 Subject: [PATCH] Update helm charts for Release 2.4 --- charts/penpot/README.md | 2 ++ charts/penpot/templates/backend-deployment.yml | 5 +++++ charts/penpot/values.yaml | 8 ++++++++ 3 files changed, 15 insertions(+) diff --git a/charts/penpot/README.md b/charts/penpot/README.md index 1c90df8..dea8254 100644 --- a/charts/penpot/README.md +++ b/charts/penpot/README.md @@ -72,6 +72,8 @@ helm install my-release -f values.yaml penpot/penpot | config.assets.s3.secretKeys.endpointURIKey | string | `""` | The S3 endpoint URI to use from an existing secret. | | config.assets.s3.secretKeys.secretAccessKey | string | `""` | The S3 secret access key to use from an existing secret. | | config.assets.storageBackend | string | `"assets-fs"` | The storage backend for assets to use. Use `assets-fs` for filesystem, and `assets-s3` for S3. | +| config.autoFileSnapshot.every | int | `5` | How many changes before generating a new snapshot. You also need to add the 'auto-file-snapshot' flag to the PENPOT_FLAGS variable. | +| config.autoFileSnapshot.timeout | string | `"3h"` | If there isn't a snapshot during this time, the system will generate one automatically. You also need to add the 'auto-file-snapshot' flag to the PENPOT_FLAGS variable. | | config.flags | string | `"enable-registration enable-login-with-password disable-email-verification enable-smtp"` | The feature flags to enable. Check [the official docs](https://help.penpot.app/technical-guide/configuration/) for more info. | | config.postgresql.database | string | `"penpot"` | The PostgreSQL database to use. | | config.postgresql.existingSecret | string | `""` | The name of an existing secret. | diff --git a/charts/penpot/templates/backend-deployment.yml b/charts/penpot/templates/backend-deployment.yml index 92210ca..e40b61b 100644 --- a/charts/penpot/templates/backend-deployment.yml +++ b/charts/penpot/templates/backend-deployment.yml @@ -363,6 +363,11 @@ spec: value: {{ .Values.config.providers.ldap.attributesPhoto | quote }} {{- end }} {{- end }} + # Auto file snapshot settings + - name: PENPOT_AUTO_FILE_SNAPSHOT_EVERY + value: {{ .Values.config.autoFileSnapshot.every | quote }} + - name: PENPOT_AUTO_FILE_SNAPSHOT_TIMEOUT + value: {{ .Values.config.autoFileSnapshot.timeout | quote }} volumeMounts: - mountPath: /opt/data/assets name: app-data diff --git a/charts/penpot/values.yaml b/charts/penpot/values.yaml index ba536ba..a9879e4 100644 --- a/charts/penpot/values.yaml +++ b/charts/penpot/values.yaml @@ -305,6 +305,14 @@ config: # @section -- Configuration parameters oidcClientSecretKey: "" + autoFileSnapshot: + # -- How many changes before generating a new snapshot. You also need to add the 'auto-file-snapshot' flag to the PENPOT_FLAGS variable. + # @section -- Configuration parameters + every: 5 # Every 5 changes + # -- If there isn't a snapshot during this time, the system will generate one automatically. You also need to add the 'auto-file-snapshot' flag to the PENPOT_FLAGS variable. + # @section -- Configuration parameters + timeout: "3h" + backend: image: # -- The Docker repository to pull the image from.