Skip to content

Commit

Permalink
Fix document-root mount if builder is not enabled (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schreglmann authored Jul 31, 2024
1 parent d07eb54 commit d080998
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-days-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"comet-site-v1": patch
---

Fix document-root mount if builder is not enabled
8 changes: 4 additions & 4 deletions charts/comet-site-v1/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ spec:
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.builder.enabled }}
volumeMounts:
{{- if .Values.builder.enabled }}
- mountPath: /mnt/generated-sites/
name: generated-sites
{{- end }}
- mountPath: /opt/app-root/src/.next
name: document-root
{{- end }}
ports:
- name: http
containerPort: 3000
Expand Down Expand Up @@ -156,8 +156,8 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.builder.enabled }}
volumes:
{{- if .Values.builder.enabled }}
- name: generated-sites
persistentVolumeClaim:
{{- if and .Values.pvc.create .Values.pvc.name }}
Expand All @@ -169,6 +169,6 @@ spec:
{{- end }}
- name: tmp
emptyDir: {}
{{- end }}
- name: document-root
emptyDir: {}
{{- end }}

0 comments on commit d080998

Please sign in to comment.