diff --git a/.changeset/gorgeous-snakes-drum.md b/.changeset/gorgeous-snakes-drum.md new file mode 100644 index 0000000..9bd79dd --- /dev/null +++ b/.changeset/gorgeous-snakes-drum.md @@ -0,0 +1,5 @@ +--- +"@openproject/helm-charts": minor +--- + +- allow setting `tmpStorageClassName` for /tmp and /app/tmp volumes diff --git a/charts/openproject/templates/_helpers.tpl b/charts/openproject/templates/_helpers.tpl index ba7f0f4..4989b58 100644 --- a/charts/openproject/templates/_helpers.tpl +++ b/charts/openproject/templates/_helpers.tpl @@ -93,6 +93,9 @@ securityContext: volumeClaimTemplate: spec: accessModes: ["ReadWriteOnce"] + {{- if or .Values.persistence.tmpStorageClassName .Values.persistence.storageClassName }} + storageClassName: {{ coalesce .Values.persistence.tmpStorageClassName .Values.persistence.storageClassName }} + {{- end }} resources: requests: storage: {{ .Values.openproject.tmpVolumesStorage }} @@ -103,6 +106,9 @@ securityContext: volumeClaimTemplate: spec: accessModes: ["ReadWriteOnce"] + {{- if or .Values.persistence.tmpStorageClassName .Values.persistence.storageClassName }} + storageClassName: {{ coalesce .Values.persistence.tmpStorageClassName .Values.persistence.storageClassName }} + {{- end }} resources: requests: storage: {{ .Values.openproject.tmpVolumesStorage }} diff --git a/charts/openproject/values.yaml b/charts/openproject/values.yaml index 72d33b9..44b12ef 100644 --- a/charts/openproject/values.yaml +++ b/charts/openproject/values.yaml @@ -379,6 +379,9 @@ persistence: ## Define the class of PV. storageClassName: + ## Define the class of PV for the tmpVolumes. + tmpStorageClassName: + ## Whether to use an S3-compatible object storage to store OpenProject attachments. ## If this is enabled, files will NOT be stored in the mounted volume configured in `persistence` above. ## The volume will not be used at all, so it `persistence.enabled` should be set to `false` in this case.