From 2d736b77cc53e2db89bde678b0890e99f1fc779c Mon Sep 17 00:00:00 2001 From: Yamila Moreno Date: Thu, 12 Dec 2024 13:31:18 +0100 Subject: [PATCH] chore: apply changes to be compatible with the penpot images of release 2.4 --- charts/penpot/Chart.yaml | 23 ++++++++++++------- charts/penpot/README.md | 10 ++++---- .../penpot/templates/backend-deployment.yml | 5 ++++ charts/penpot/values.yaml | 14 ++++++++--- 4 files changed, 37 insertions(+), 15 deletions(-) diff --git a/charts/penpot/Chart.yaml b/charts/penpot/Chart.yaml index 69ac36e..a2e337b 100644 --- a/charts/penpot/Chart.yaml +++ b/charts/penpot/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 -version: 0.5.0 # Chart version -appVersion: "2.3.3" # Penpot version +version: 0.6.0 # Chart version +appVersion: "2.4.0" # Penpot version type: application name: penpot description: Helm chart for Penpot, the Open Source design and prototyping platform. @@ -39,19 +39,26 @@ annotations: url: https://penpot.app/dev-diaries.html artifacthub.io/containsSecurityUpdates: "false" artifacthub.io/changes: | - - kind: added - description: containsSecurityUpdates and podSecurityContext can be defined for penpot-frontend. - - kind: added - description: Allow to run in a Openshift Container Platform. - kind: changed - description: Bump Penpot images to 2.3.3. + description: Bump Penpot images to 2.4.0. - kind: changed description: Change penpot-frontend service port to 8080. - kind: added - description: config.internalResolver sets PENPOT_INTERNAL_RESOLVER to the frontend deployment. + description: Add autoFileSnapshot configuration + - kind: added + description: containsSecurityUpdates and podSecurityContext can be defined for penpot-frontend. + - kind: added + description: Allow to run in a Openshift Container Platform. Thanks to @alverad-katsuro. + links: + - name: GitHub PR #9 + url: https://github.com/penpot/penpot-helm/pull/9 + - kind: added + description: config.internalResolver sets PENPOT_INTERNAL_RESOLVER to the frontend deployment. Thanks to @vipinjn24. links: - name: Github Issue #12 url: https://github.com/penpot/penpot-helm/issues/12 + - name: GitHub PR #13 + url: https://github.com/penpot/penpot-helm/pull/13 dependencies: - name: postgresql version: 15.x.x # appVersion >= 16.2.0 diff --git a/charts/penpot/README.md b/charts/penpot/README.md index 905d9d6..37c683c 100644 --- a/charts/penpot/README.md +++ b/charts/penpot/README.md @@ -1,6 +1,6 @@ # penpot -![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![AppVersion: 2.3.3](https://img.shields.io/badge/AppVersion-2.3.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![AppVersion: 2.4.0](https://img.shields.io/badge/AppVersion-2.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) Helm chart for Penpot, the Open Source design and prototyping platform. @@ -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.internalResolver | string | `""` | Add custom resolver for frontend. e.g. 192.168.1.1 | | config.postgresql.database | string | `"penpot"` | The PostgreSQL database to use. | @@ -154,7 +156,7 @@ helm install my-release -f values.yaml penpot/penpot | backend.deploymentAnnotations | object | `{}` | An optional map of annotations to be applied to the controller Deployment | | backend.image.pullPolicy | string | `"IfNotPresent"` | The image pull policy to use. | | backend.image.repository | string | `"penpotapp/backend"` | The Docker repository to pull the image from. | -| backend.image.tag | string | `"2.3.3"` | The image tag to use. | +| backend.image.tag | string | `"2.4.0"` | The image tag to use. | | backend.nodeSelector | object | `{}` | Node labels for Penpot pods assignment. Check [the official doc](https://kubernetes.io/docs/user-guide/node-selection/) | | backend.pdb | object | `{"enabled":false,"maxUnavailable":null,"minAvailable":null}` | Configure Pod Disruption Budget for the backend pods. Check [the official doc](https://kubernetes.io/docs/tasks/run-application/configure-pdb/) | | backend.pdb.enabled | bool | `false` | Enable Pod Disruption Budget for the backend pods. | @@ -180,7 +182,7 @@ helm install my-release -f values.yaml penpot/penpot | frontend.deploymentAnnotations | object | `{}` | An optional map of annotations to be applied to the controller Deployment | | frontend.image.pullPolicy | string | `"IfNotPresent"` | The image pull policy to use. | | frontend.image.repository | string | `"penpotapp/frontend"` | The Docker repository to pull the image from. | -| frontend.image.tag | string | `"2.3.3"` | The image tag to use. | +| frontend.image.tag | string | `"2.4.0"` | The image tag to use. | | frontend.nodeSelector | object | `{}` | Node labels for Penpot pods assignment. Check [the official doc](https://kubernetes.io/docs/user-guide/node-selection/) | | frontend.pdb | object | `{"enabled":false,"maxUnavailable":null,"minAvailable":null}` | Configure Pod Disruption Budget for the frontend pods. Check [the official doc](https://kubernetes.io/docs/tasks/run-application/configure-pdb/) | | frontend.pdb.enabled | bool | `false` | Enable Pod Disruption Budget for the frontend pods. | @@ -206,7 +208,7 @@ helm install my-release -f values.yaml penpot/penpot | exporter.deploymentAnnotations | object | `{}` | An optional map of annotations to be applied to the controller Deployment | | exporter.image.imagePullPolicy | string | `"IfNotPresent"` | The image pull policy to use. | | exporter.image.repository | string | `"penpotapp/exporter"` | The Docker repository to pull the image from. | -| exporter.image.tag | string | `"2.3.3"` | The image tag to use. | +| exporter.image.tag | string | `"2.4.0"` | The image tag to use. | | exporter.nodeSelector | object | `{}` | Node labels for Penpot pods assignment. Check [the official doc](https://kubernetes.io/docs/user-guide/node-selection/) | | exporter.pdb | object | `{"enabled":false,"maxUnavailable":null,"minAvailable":null}` | Configure Pod Disruption Budget for the exporter pods. Check [the official doc](https://kubernetes.io/docs/tasks/run-application/configure-pdb/) | | exporter.pdb.enabled | bool | `false` | Enable Pod Disruption Budget for the exporter pods. | 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 133fe85..8ae490f 100644 --- a/charts/penpot/values.yaml +++ b/charts/penpot/values.yaml @@ -308,6 +308,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. @@ -315,7 +323,7 @@ backend: repository: penpotapp/backend # -- The image tag to use. # @section -- Backend parameters - tag: 2.3.3 + tag: 2.4.0 # -- The image pull policy to use. # @section -- Backend parameters pullPolicy: IfNotPresent @@ -390,7 +398,7 @@ frontend: repository: penpotapp/frontend # -- The image tag to use. # @section -- Frontend parameters - tag: 2.3.3 + tag: 2.4.0 # -- The image pull policy to use. # @section -- Frontend parameters pullPolicy: IfNotPresent @@ -465,7 +473,7 @@ exporter: repository: penpotapp/exporter # -- The image tag to use. # @section -- Exporter parameters - tag: 2.3.3 + tag: 2.4.0 # -- The image pull policy to use. # @section -- Exporter parameters imagePullPolicy: IfNotPresent