From 440b5e5330dc80a7295029699257bbab8899e202 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Fri, 20 Oct 2023 14:00:09 +0200 Subject: [PATCH] feat(hedgedoc): Add emptyDir under /tmp to fix uploads --- charts/hedgedoc/Chart.yaml | 2 +- charts/hedgedoc/README.md | 2 +- charts/hedgedoc/templates/deployment.yaml | 12 ++++++++---- .../tests/__snapshot__/98_snapshot_test.yaml.snap | 6 ++++++ 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/charts/hedgedoc/Chart.yaml b/charts/hedgedoc/Chart.yaml index 0dfe78203..400aa609c 100644 --- a/charts/hedgedoc/Chart.yaml +++ b/charts/hedgedoc/Chart.yaml @@ -20,7 +20,7 @@ keywords: sources: - https://github.com/hedgedoc/hedgedoc/tree/master - https://git.shivering-isles.com/shivering-isles/infrastructure-gitops/-/tree/main/charts/hedgedoc -version: 0.4.0 +version: 0.4.1 # renovate: image=quay.io/hedgedoc/hedgedoc appVersion: "1.9.9" maintainers: diff --git a/charts/hedgedoc/README.md b/charts/hedgedoc/README.md index 2a9647c39..2b05d0b5b 100644 --- a/charts/hedgedoc/README.md +++ b/charts/hedgedoc/README.md @@ -1,6 +1,6 @@ # hedgedoc -   +   A platform to write and share markdown. diff --git a/charts/hedgedoc/templates/deployment.yaml b/charts/hedgedoc/templates/deployment.yaml index 6d524eb75..c8b31b9f5 100644 --- a/charts/hedgedoc/templates/deployment.yaml +++ b/charts/hedgedoc/templates/deployment.yaml @@ -69,11 +69,13 @@ spec: path: /status {{- end }} port: http - {{- if .Values.postgresql.tls.enabled }} volumeMounts: + - name: tmp + mountPath: /tmp + {{- if .Values.postgresql.tls.enabled }} - name: config mountPath: /files/ - {{- end }} + {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} @@ -88,8 +90,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} - {{- if .Values.postgresql.tls.enabled }} volumes: + - name: tmp + emptyDir: {} + {{- if .Values.postgresql.tls.enabled }} - name: config configMap: name: {{ include "hedgedoc.fullname" . }}-config @@ -97,4 +101,4 @@ spec: - key: config.json path: config.json defaultMode: 420 - {{- end }} + {{- end }} diff --git a/charts/hedgedoc/tests/__snapshot__/98_snapshot_test.yaml.snap b/charts/hedgedoc/tests/__snapshot__/98_snapshot_test.yaml.snap index be8579cd6..e0d64c83d 100644 --- a/charts/hedgedoc/tests/__snapshot__/98_snapshot_test.yaml.snap +++ b/charts/hedgedoc/tests/__snapshot__/98_snapshot_test.yaml.snap @@ -93,6 +93,9 @@ should match basic snapshot: readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 10000 + volumeMounts: + - mountPath: /tmp + name: tmp securityContext: allowPrivilegeEscalation: false capabilities: @@ -102,6 +105,9 @@ should match basic snapshot: seccompProfile: type: RuntimeDefault serviceAccountName: RELEASE-NAME-hedgedoc + volumes: + - emptyDir: {} + name: tmp 3: | apiVersion: networking.k8s.io/v1 kind: Ingress -- GitLab