Skip to content
Snippets Groups Projects
Verified Commit 440b5e53 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(hedgedoc): Add emptyDir under /tmp to fix uploads

parent e5867151
No related branches found
No related tags found
No related merge requests found
Pipeline #18547 passed
...@@ -20,7 +20,7 @@ keywords: ...@@ -20,7 +20,7 @@ keywords:
sources: sources:
- https://github.com/hedgedoc/hedgedoc/tree/master - https://github.com/hedgedoc/hedgedoc/tree/master
- https://git.shivering-isles.com/shivering-isles/infrastructure-gitops/-/tree/main/charts/hedgedoc - 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 # renovate: image=quay.io/hedgedoc/hedgedoc
appVersion: "1.9.9" appVersion: "1.9.9"
maintainers: maintainers:
......
# hedgedoc # hedgedoc
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.9.9](https://img.shields.io/badge/AppVersion-1.9.9-informational?style=flat-square) ![Version: 0.4.1](https://img.shields.io/badge/Version-0.4.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.9.9](https://img.shields.io/badge/AppVersion-1.9.9-informational?style=flat-square)
A platform to write and share markdown. A platform to write and share markdown.
......
...@@ -69,11 +69,13 @@ spec: ...@@ -69,11 +69,13 @@ spec:
path: /status path: /status
{{- end }} {{- end }}
port: http port: http
{{- if .Values.postgresql.tls.enabled }}
volumeMounts: volumeMounts:
- name: tmp
mountPath: /tmp
{{- if .Values.postgresql.tls.enabled }}
- name: config - name: config
mountPath: /files/ mountPath: /files/
{{- end }} {{- end }}
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
...@@ -88,8 +90,10 @@ spec: ...@@ -88,8 +90,10 @@ spec:
tolerations: tolerations:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if .Values.postgresql.tls.enabled }}
volumes: volumes:
- name: tmp
emptyDir: {}
{{- if .Values.postgresql.tls.enabled }}
- name: config - name: config
configMap: configMap:
name: {{ include "hedgedoc.fullname" . }}-config name: {{ include "hedgedoc.fullname" . }}-config
...@@ -97,4 +101,4 @@ spec: ...@@ -97,4 +101,4 @@ spec:
- key: config.json - key: config.json
path: config.json path: config.json
defaultMode: 420 defaultMode: 420
{{- end }} {{- end }}
...@@ -93,6 +93,9 @@ should match basic snapshot: ...@@ -93,6 +93,9 @@ should match basic snapshot:
readOnlyRootFilesystem: true readOnlyRootFilesystem: true
runAsNonRoot: true runAsNonRoot: true
runAsUser: 10000 runAsUser: 10000
volumeMounts:
- mountPath: /tmp
name: tmp
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
capabilities: capabilities:
...@@ -102,6 +105,9 @@ should match basic snapshot: ...@@ -102,6 +105,9 @@ should match basic snapshot:
seccompProfile: seccompProfile:
type: RuntimeDefault type: RuntimeDefault
serviceAccountName: RELEASE-NAME-hedgedoc serviceAccountName: RELEASE-NAME-hedgedoc
volumes:
- emptyDir: {}
name: tmp
3: | 3: |
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment