Skip to content

Commit

Permalink
make tmpdir configurable
Browse files Browse the repository at this point in the history
Signed-off-by: André Bauer <andre.bauer@staffbase.com>
  • Loading branch information
monotek committed Dec 5, 2023
1 parent 4db5034 commit ec2e8a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions charts/visual-regression-tracker/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ spec:
subPath: env-config.js
- name: tmp
mountPath: /var/cache/nginx
- name: tmp
mountPath: /var/run
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -173,9 +175,8 @@ spec:
name: env-config
defaultMode: 0777
- name: tmp
emptyDir:
sizeLimit: 100Mi
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
{{- toYaml .Values.vrtComponents.ui.tmpDirVolume | nindent 10 }}
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: {{ template "visual-regression-tracker.fullname" . }}
persistentVolumeClaim:
claimName: {{ .Values.persistence.existingClaim | default (include "visual-regression-tracker.fullname" .) }}
Expand Down
4 changes: 4 additions & 0 deletions charts/visual-regression-tracker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ vrtComponents:
type: ClusterIP
port: 8080

tmpDirVolume:
emptyDir:
sizeLimit: 100Mi

# Configuration for persistence
persistence:
enabled: true
Expand Down

0 comments on commit ec2e8a0

Please sign in to comment.