Skip to content

Commit

Permalink
chore: apply changes to be compatible with the penpot images of relea…
Browse files Browse the repository at this point in the history
…se 2.4
  • Loading branch information
yamila-moreno authored and bameda committed Jan 8, 2025
1 parent a53fd7f commit 2d736b7
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 15 deletions.
23 changes: 15 additions & 8 deletions charts/penpot/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions charts/penpot/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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. |
Expand Down Expand Up @@ -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. |
Expand All @@ -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. |
Expand All @@ -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. |
Expand Down
5 changes: 5 additions & 0 deletions charts/penpot/templates/backend-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 11 additions & 3 deletions charts/penpot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,22 @@ 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.
# @section -- Backend parameters
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2d736b7

Please sign in to comment.